From 106c47350a994b148bcabe1c6d6dbcec1e3772b9 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Tue, 17 Sep 2019 11:05:16 -0500 Subject: [PATCH] Disable selecting and editing of about attributed string views. --- iOS/Settings/SettingsAttributedStringView.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iOS/Settings/SettingsAttributedStringView.swift b/iOS/Settings/SettingsAttributedStringView.swift index c1adf4a0c..0bee143b6 100644 --- a/iOS/Settings/SettingsAttributedStringView.swift +++ b/iOS/Settings/SettingsAttributedStringView.swift @@ -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 }