Fix coloring of About scene in dark mode

This commit is contained in:
Maurice Parker
2019-10-21 18:21:42 -05:00
parent 67251da7ac
commit 19400a5a50
2 changed files with 10 additions and 9 deletions

View File

@@ -49,6 +49,7 @@ private extension AboutViewController {
let url = Bundle.main.url(forResource: file, withExtension: "rtf")!
let string = try! NSAttributedString(url: url, options: [NSAttributedString.DocumentReadingOptionKey.documentType: NSAttributedString.DocumentType.rtf], documentAttributes: nil)
textView.attributedText = string
textView.textColor = UIColor.label
textView.adjustsFontForContentSizeCategory = true
textView.font = .preferredFont(forTextStyle: .body)
}