Fix unexpected font size on PostView
Changelog-Fixed: Fix unexpected font size when posting Closes: #761
This commit is contained in:
committed by
William Casarin
parent
d1a77891c7
commit
b2b62828e3
@@ -13,7 +13,7 @@ struct TextViewWrapper: UIViewRepresentable {
|
|||||||
func makeUIView(context: Context) -> UITextView {
|
func makeUIView(context: Context) -> UITextView {
|
||||||
let textView = UITextView()
|
let textView = UITextView()
|
||||||
textView.delegate = context.coordinator
|
textView.delegate = context.coordinator
|
||||||
textView.font = UIFont.systemFont(ofSize: 18)
|
textView.font = UIFont.preferredFont(forTextStyle: .body)
|
||||||
textView.textColor = UIColor.label
|
textView.textColor = UIColor.label
|
||||||
let linkAttributes: [NSAttributedString.Key : Any] = [
|
let linkAttributes: [NSAttributedString.Key : Any] = [
|
||||||
NSAttributedString.Key.foregroundColor: UIColor(Color.accentColor)]
|
NSAttributedString.Key.foregroundColor: UIColor(Color.accentColor)]
|
||||||
|
|||||||
Reference in New Issue
Block a user