mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Disable selecting and editing of about attributed string views.
This commit is contained in:
@@ -13,15 +13,19 @@ struct SettingsAttributedStringView: UIViewRepresentable {
|
||||
let string: NSAttributedString
|
||||
|
||||
func makeUIView(context: Context) -> UITextView {
|
||||
|
||||
let textView = UITextView()
|
||||
|
||||
textView.attributedText = string
|
||||
textView.adjustsFontForContentSizeCategory = true
|
||||
textView.translatesAutoresizingMaskIntoConstraints = false
|
||||
|
||||
textView.adjustsFontForContentSizeCategory = true
|
||||
textView.font = .preferredFont(forTextStyle: .body)
|
||||
textView.textColor = UIColor.label
|
||||
textView.backgroundColor = UIColor.secondarySystemGroupedBackground
|
||||
|
||||
textView.isEditable = false
|
||||
textView.isSelectable = false
|
||||
|
||||
return textView
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user