Skip to content

Commit fa5c856

Browse files
BasThomasrnystrom
authored andcommitted
Infer UIFont where possible (#13)
1 parent bc608d9 commit fa5c856

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MessageViewController/MessageView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public final class MessageView: UIView, MessageTextViewListener {
3333
textView.textContainerInset = .zero
3434
textView.backgroundColor = .clear
3535
textView.addObserver(self, forKeyPath: UITextViewContentSizeKeyPath, options: [.new], context: nil)
36-
textView.font = UIFont.systemFont(ofSize: UIFont.systemFontSize)
36+
textView.font = .systemFont(ofSize: UIFont.systemFontSize)
3737
textView.add(listener: self)
3838

3939
// setup TextKit props to defaults

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ borderColor = .lightGray
4343
messageView.inset = UIEdgeInsets(top: 8, left: 16, bottom: 8, right: 16)
4444
messageView.textView.placeholderText = "New message..."
4545
messageView.textView.placeholderTextColor = .lightGray
46-
messageView.font = UIFont.systemFont(ofSize: 17)
46+
messageView.font = .systemFont(ofSize: 17)
4747

4848
// Setup the button using text or an icon
4949
messageView.set(buttonTitle: "Send", for: .normal)

0 commit comments

Comments
 (0)