Enable drawing text autocorrection

This commit is contained in:
Ilya Laktyushin 2023-06-10 22:14:26 +04:00
parent bf5a8709cc
commit 12dde45917
2 changed files with 6 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public final class DrawingTextEntityView: DrawingEntityView, UITextViewDelegate
self.textView.minimumZoomScale = 1.0
self.textView.maximumZoomScale = 1.0
self.textView.keyboardAppearance = .dark
self.textView.autocorrectionType = .no
self.textView.autocorrectionType = .default
self.textView.spellCheckingType = .no
super.init(context: context, entity: entity)

View File

@ -361,6 +361,11 @@ final class VideoScrubberComponent: Component {
return scrubberSize
}
override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
let hitTestSlop = UIEdgeInsets(top: -8.0, left: -9.0, bottom: -8.0, right: -9.0)
return self.bounds.inset(by: hitTestSlop).contains(point)
}
}
public func makeView() -> View {