commit b2b62828e36f5614916932bfa72125451adc4baa
parent d1a77891c79e6c36dc8b56bad61795764ab20cdd
Author: Bryan Montz <bryanmontz@me.com>
Date: Tue, 7 Mar 2023 22:57:56 -0600
Fix unexpected font size on PostView
Changelog-Fixed: Fix unexpected font size when posting
Closes: #761
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/damus/Views/TextViewWrapper.swift b/damus/Views/TextViewWrapper.swift
@@ -13,7 +13,7 @@ struct TextViewWrapper: UIViewRepresentable {
func makeUIView(context: Context) -> UITextView {
let textView = UITextView()
textView.delegate = context.coordinator
- textView.font = UIFont.systemFont(ofSize: 18)
+ textView.font = UIFont.preferredFont(forTextStyle: .body)
textView.textColor = UIColor.label
let linkAttributes: [NSAttributedString.Key : Any] = [
NSAttributedString.Key.foregroundColor: UIColor(Color.accentColor)]