mirror of
git://jb55.com/damus
synced 2024-10-06 19:53:22 +00:00
Fix text color in dark mode on post view
This commit is contained in:
parent
436d20dfbd
commit
e4dd585754
@ -9,12 +9,12 @@ import SwiftUI
|
||||
|
||||
struct TextViewWrapper: UIViewRepresentable {
|
||||
@Binding var attributedText: NSMutableAttributedString
|
||||
|
||||
|
||||
func makeUIView(context: Context) -> UITextView {
|
||||
let textView = UITextView()
|
||||
textView.delegate = context.coordinator
|
||||
textView.font = UIFont.systemFont(ofSize: 18)
|
||||
textView.textColor = UIColor.black
|
||||
//textView.textColor = UIColor.black
|
||||
let linkAttributes: [NSAttributedString.Key : Any] = [
|
||||
NSAttributedString.Key.foregroundColor: UIColor(Color.accentColor)]
|
||||
textView.linkTextAttributes = linkAttributes
|
||||
|
Loading…
Reference in New Issue
Block a user