Skip to content

Commit

Permalink
Fix iOS What's New text color in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Jan 21, 2024
1 parent f70c7a6 commit 0a9b8c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Viewer/iOS/WhatsNewViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import UIKit
func loadRTF(_ file: String) throws -> NSAttributedString {
let file = Bundle.main.url(forResource: file, withExtension: "rtf")!
let data = try! Data(contentsOf: file)
return try NSAttributedString(data: data, documentAttributes: nil)
let string = try NSMutableAttributedString(data: data, documentAttributes: nil)
let range = NSRange(location: 0, length: string.length)
string.addAttributes([.foregroundColor: UIColor.label], range: range)
return string
}

class WhatsNewViewController: UIViewController {
Expand Down

0 comments on commit 0a9b8c9

Please sign in to comment.