Dynamic Type warnings with iOS 9 deployment
zarzonis opened this issue · 7 comments
This is caused since the xib files have specified to use the dynamic font size. I guess the only solution is to specify the font on all labels programmatically inside an if #available(iOS 10, *)
. I'll think about a clever solution or otherwise fallback to do everything programmatically :(
That's exactly the reason of the warnings. I think that the only way to solve this is to specify the font programmatically inside the if #available
statement you already mentioned. If you come up with something better, please let me know.
Fixed in release 0.3! 😄
@nixzhu You're right, I changed the title text style to be .title2
so its pointSize
is now 22 in release 0.3.1.
@BalestraPatrick .title2
is big enough, but it's not bold.
I have try the following code is good for display:
let fontDescriptor = UIFont.preferredFont(forTextStyle: .headline).fontDescriptor
let font = UIFont(descriptor: fontDescriptor, size: fontDescriptor.pointSize + 5)
titleLabel.font = font
But I think it's better if we can customize the item's font directly.
Feel free to submit a PR to make the title bold and expose the font property to be customizable :)