Releases: Mindgrub/Swash
Font Cascading
- Added font cascading support (see README)
- Changed
boldTextMappingfromstaticto instance (breaking change)
Bold Text Mapping
Now you can implement the static boldTextMapping property on any Font in order to support the "Bold Text" device setting on iOS and tvOS.
This release is backward compatible with 3.0.0. The boldTextMapping property defaults to nil and can be ignored if you wish.
👋 Optionals
Just one change in this update. Font methods now return plain UIFont instances rather than optionals, for practical reasons.
Setting label.font has never been an issue with this library because that property is optional. But when working with NSAttributedString attributes, optionals are an unnecessary inconvenience. The same goes for navigationBar.titleTextAttributes.
So, for release builds, we now fall back to the system font rather than returning nil in the case that a custom font fails to be initialized. This is what labels do anyway when font is set to nil.
As always, failed font initializations will crash debug builds. This makes boilerplate errors easy to catch.
This is a major release because it will cause errors in existing code where if/guard lets are used.
Swift 5
- Swift 5.0
- Restructured the project files
2.0.0
- Swift 4.2
- Default values for
defaultSizebased on Apple’s Human Interface Guidelines - watchOS and tvOS support
- Documentation
- Unit Tests
- Carthage Support
1.0.0
Updated README gif link
0.1.0
podspec summary and description