mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 01:31:02 +00:00
Text view config improvements
This commit is contained in:
parent
b1cc59a7e9
commit
9cbe7bc004
5 changed files with 2 additions and 4 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue