Text view config improvements
This commit is contained in:
parent
b1cc59a7e9
commit
9cbe7bc004
|
@ -48,7 +48,6 @@ final class AccountFieldView: UIView {
|
|||
|
||||
addSubview(valueTextView)
|
||||
valueTextView.translatesAutoresizingMaskIntoConstraints = false
|
||||
valueTextView.isScrollEnabled = false
|
||||
valueTextView.backgroundColor = .clear
|
||||
|
||||
if verifiedAt != nil {
|
||||
|
|
|
@ -290,7 +290,6 @@ private extension AccountHeaderView {
|
|||
fieldsStackView.layer.cornerRadius = .defaultCornerRadius
|
||||
|
||||
baseStackView.addArrangedSubview(noteTextView)
|
||||
noteTextView.isScrollEnabled = false
|
||||
noteTextView.delegate = self
|
||||
|
||||
baseStackView.addArrangedSubview(followStackView)
|
||||
|
|
|
@ -89,7 +89,6 @@ private extension AccountView {
|
|||
accountLabel.font = .preferredFont(forTextStyle: .subheadline)
|
||||
accountLabel.adjustsFontForContentSizeCategory = true
|
||||
accountLabel.textColor = .secondaryLabel
|
||||
noteTextView.isScrollEnabled = false
|
||||
noteTextView.backgroundColor = .clear
|
||||
noteTextView.delegate = self
|
||||
|
||||
|
|
|
@ -166,7 +166,6 @@ private extension StatusBodyView {
|
|||
stackView.addArrangedSubview(toggleShowContentButton)
|
||||
|
||||
contentTextView.adjustsFontForContentSizeCategory = true
|
||||
contentTextView.isScrollEnabled = false
|
||||
contentTextView.backgroundColor = .clear
|
||||
contentTextView.delegate = self
|
||||
stackView.addArrangedSubview(contentTextView)
|
||||
|
|
|
@ -13,6 +13,8 @@ final class TouchFallthroughTextView: UITextView {
|
|||
clipsToBounds = false
|
||||
textDragInteraction?.isEnabled = false
|
||||
isEditable = false
|
||||
isScrollEnabled = false
|
||||
delaysContentTouches = false
|
||||
textContainerInset = .zero
|
||||
self.textContainer.lineFragmentPadding = 0
|
||||
linkTextAttributes = [.foregroundColor: tintColor as Any, .underlineColor: UIColor.clear]
|
||||
|
|
Loading…
Reference in New Issue