Made Settings attributed string views selectable so that the links in them work
This commit is contained in:
parent
abe10b8a24
commit
cd9447abb4
|
@ -17,15 +17,13 @@ struct SettingsAttributedStringView: UIViewRepresentable {
|
||||||
|
|
||||||
textView.attributedText = string
|
textView.attributedText = string
|
||||||
textView.translatesAutoresizingMaskIntoConstraints = false
|
textView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
|
textView.isEditable = false
|
||||||
|
|
||||||
textView.adjustsFontForContentSizeCategory = true
|
textView.adjustsFontForContentSizeCategory = true
|
||||||
textView.font = .preferredFont(forTextStyle: .body)
|
textView.font = .preferredFont(forTextStyle: .body)
|
||||||
textView.textColor = UIColor.label
|
textView.textColor = UIColor.label
|
||||||
textView.backgroundColor = UIColor.secondarySystemGroupedBackground
|
textView.backgroundColor = UIColor.secondarySystemGroupedBackground
|
||||||
|
|
||||||
textView.isEditable = false
|
|
||||||
textView.isSelectable = false
|
|
||||||
|
|
||||||
return textView
|
return textView
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue