Skip to content

1.1.1

Choose a tag to compare

@gewill gewill released this 17 Sep 14:22
· 8 commits to main since this release
6c3eea9

Documentation release. The library's API and behaviour are unchanged from 1.1.0.

Documentation

  • The DocC landing page now covers UIKit, AppKit and SwiftUI on every supported platform, and its topics are grouped into Essentials, Font Variants and SwiftUI.
  • New article Using a Scaled Font: creating a scaled font and using it with UIKit, AppKit and SwiftUI. It explains that macOS has no Dynamic Type, so a custom font keeps the size from the style dictionary there.
  • New article Choosing Font Variants: the design and weight keys, call-site overrides and their precedence, how bold picks a face for a custom font, availability, and why a switch over FontDesign or FontWeight needs a default case.
  • ScaledFont, FontDesign and FontWeight are organized into topic groups, and rawValue and init(rawValue:) are documented.
  • Creating A Style Dictionary shows how to list font names on macOS and links to the variants article.
  • The link to the typography specifications in the Human Interface Guidelines works again, and the adjustsFontForContentSizeCategory typo is fixed in the docs and the README.

Tooling

  • swift package generate-documentation works again with current toolchains. The pinned swift-docc-plugin moved from 1.0.0, which passed an option that current DocC no longer accepts, to 1.5.0.