Text view config improvements

This commit is contained in:
Justin Mazzocchi 2021-01-24 14:12:04 -08:00
parent b1cc59a7e9
commit 9cbe7bc004
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C
5 changed files with 2 additions and 4 deletions

View file

@ -48,7 +48,6 @@ final class AccountFieldView: UIView {
addSubview(valueTextView) addSubview(valueTextView)
valueTextView.translatesAutoresizingMaskIntoConstraints = false valueTextView.translatesAutoresizingMaskIntoConstraints = false
valueTextView.isScrollEnabled = false
valueTextView.backgroundColor = .clear valueTextView.backgroundColor = .clear
if verifiedAt != nil { if verifiedAt != nil {

View file

@ -290,7 +290,6 @@ private extension AccountHeaderView {
fieldsStackView.layer.cornerRadius = .defaultCornerRadius fieldsStackView.layer.cornerRadius = .defaultCornerRadius
baseStackView.addArrangedSubview(noteTextView) baseStackView.addArrangedSubview(noteTextView)
noteTextView.isScrollEnabled = false
noteTextView.delegate = self noteTextView.delegate = self
baseStackView.addArrangedSubview(followStackView) baseStackView.addArrangedSubview(followStackView)

View file

@ -89,7 +89,6 @@ private extension AccountView {
accountLabel.font = .preferredFont(forTextStyle: .subheadline) accountLabel.font = .preferredFont(forTextStyle: .subheadline)
accountLabel.adjustsFontForContentSizeCategory = true accountLabel.adjustsFontForContentSizeCategory = true
accountLabel.textColor = .secondaryLabel accountLabel.textColor = .secondaryLabel
noteTextView.isScrollEnabled = false
noteTextView.backgroundColor = .clear noteTextView.backgroundColor = .clear
noteTextView.delegate = self noteTextView.delegate = self

View file

@ -166,7 +166,6 @@ private extension StatusBodyView {
stackView.addArrangedSubview(toggleShowContentButton) stackView.addArrangedSubview(toggleShowContentButton)
contentTextView.adjustsFontForContentSizeCategory = true contentTextView.adjustsFontForContentSizeCategory = true
contentTextView.isScrollEnabled = false
contentTextView.backgroundColor = .clear contentTextView.backgroundColor = .clear
contentTextView.delegate = self contentTextView.delegate = self
stackView.addArrangedSubview(contentTextView) stackView.addArrangedSubview(contentTextView)

View file

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