1
0
mirror of https://github.com/metabolist/metatext synced 2025-01-03 21:41:02 +01:00

Disable editing fallthrough text field

This commit is contained in:
Justin Mazzocchi 2020-10-24 23:45:45 -07:00
parent 3a1d8d4470
commit fa1487df16
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C

View File

@ -12,6 +12,7 @@ final class TouchFallthroughTextView: UITextView {
clipsToBounds = false
textDragInteraction?.isEnabled = false
isEditable = false
textContainerInset = .zero
self.textContainer.lineFragmentPadding = 0
linkTextAttributes = [.foregroundColor: tintColor as Any, .underlineColor: UIColor.clear]