Version 1.4.0
- Remove the
fontSize
andcustomFontWithName
properties - Add new
font
property of typeUIFont
to handle all font related configuration - Update documentation to include changes
Breaking API Changes in 1.4.0
- Since no longer using
fontSize
orcustomFontWithName
any projects using these properties will break until updated to newerfont
and to useUIFont
. - Any interface builder views which used
fontSize
orcustomFontWithName
will now complain about breaking. To fix this simply go into the class inspector of the view, underUser Defined Run Time Attributes
remove any of thefontSize
orcustomFontWithName
values. Then refresh the views by doingEditor -> Refresh Views
Why was this done?
This made sense to do because it was slightly confusing how to accomplish fonts and interface builder since apple does not add support for IBDesignable
fonts. I've decided to sacrifice the interface builder support for code only font management, because this leads to safer use of fonts since the view is no longer handeling the creation of UIFont
itself. This also adds more customization to the view since previously you could only change the font size and font. Now users can do whatever is allowed with UIFont, such as using defined font families, etc