Skip to content

Releases: Mindgrub/Swash

Font Cascading

25 Apr 19:13

Choose a tag to compare

  • Added font cascading support (see README)
  • Changed boldTextMapping from static to instance (breaking change)

Bold Text Mapping

18 Nov 03:13

Choose a tag to compare

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

04 Jun 21:34

Choose a tag to compare

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

30 Mar 20:40

Choose a tag to compare

  • Swift 5.0
  • Restructured the project files

2.0.0

30 Sep 02:23

Choose a tag to compare

  • Swift 4.2
  • Default values for defaultSize based on Apple’s Human Interface Guidelines
  • watchOS and tvOS support
  • Documentation
  • Unit Tests
  • Carthage Support

1.0.0

14 Feb 16:56

Choose a tag to compare

Updated README gif link

0.1.0

07 Feb 22:00

Choose a tag to compare

0.1.0 Pre-release
Pre-release
podspec summary and description