1.1.1
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
designandweightkeys, call-site overrides and their precedence, howboldpicks a face for a custom font, availability, and why aswitchoverFontDesignorFontWeightneeds adefaultcase. ScaledFont,FontDesignandFontWeightare organized into topic groups, andrawValueandinit(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
adjustsFontForContentSizeCategorytypo is fixed in the docs and the README.
Tooling
swift package generate-documentationworks 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.