Skip to content

Releases: SRGSSR/srgappearance-apple

Update fonts and colors

30 Apr 11:49
17415ec
Compare
Choose a tag to compare
  • Updates font sizes for SRGFontStyleSubtitle1 and SRGFontStyleH2.
  • Add UIColor.srg_gray71Color color.
  • Add UIColor. srg_grayD2Color color (replacing UIColor. srg_grayC7Color, deprecated).

What's changed

  • Build and test with Xcode 14.3 by @pyby in #13
  • CI: update builds and tests to Xcode 14.3.1 by @pyby in #14
  • Xcode 15 with iOS 17 and tvOS 17 by @pyby in #15
  • Build and test with Xcode 15.0.1 by @pyby in #16
  • Build and test with Xcode 15.3 by @pyby in #17
  • Design system update by @pyby in #18

New Contributors

Full Changelog: 5.2.1...5.2.2

Maintenance release

28 Oct 10:06
37858eb
Compare
Choose a tag to compare

Fixes

  • Fix font-related assertion crashes in unit tests (#12).

Restore Catalyst support

11 Aug 16:50
72d9475
Compare
Choose a tag to compare

This release makes sure the project builds with Xcode 14 without any significant warning.

Font weight fix

08 Jul 09:31
5.1.1
2b31bd9
Compare
Choose a tag to compare
  • Fix incorrect font weights on devices whose language is not English.

Global font SwiftUI modifiers

20 May 08:54
8fb77ea
Compare
Choose a tag to compare

The SRG SwiftUI font modifiers can be applied not only to text views but to entire view hierarchies.

Font registration fixes

24 Sep 10:39
cfd2b13
Compare
Choose a tag to compare

Breaking changes

  • The SRGAppearanceRegisterFont function has been removed. Use CoreText registration functions like CTFontManagerRegisterFontsForURL instead.

Fixes

  • tvOS 15 crashes due to unreliable font registrations have been fixed (#8).

Maintenance release

22 Sep 09:09
4754703
Compare
Choose a tag to compare

This release contains minor improvements to the code and CI setup with no impact on overall behavior.

Variable font, styles, metrics and colors

20 Jul 07:06
fe65fea
Compare
Choose a tag to compare

This release is a major overhaul of SRG Appearance.

Variable font

The SRG SSR font is now variable with support for arbitrary weights. Both the text and display fonts are provided.

Styles

SRG Appearance now provides several built-in styles which corresponds to fixed sizes, weights and scaling behaviors, defined both for iOS and tvOS. Your designs can benefit from using these standard styles across platforms.

If your application does not want to use the standard styles we provide SRG Appearance still provides an API with which you can define your own styles.

Remark

Standard styles support XS, S, M, L, XL and XXL content sizes, but not accessibility sizes. Accessibility sizes are namely tricky to support from a layout perspective. If your application still wants to support such sizes you should define your own styles, which can support arbitrary content sizes.

Metrics

SRG Appearance provides UIFontMetrics matching its styles (as well as the @SRGScaledMetric property wrapper for SwiftUI) which allows you to scale scalar values depending on content size settings.

Colors

Several gray colors have been added.

Swift and SwiftUI support

SRG Appearance now provides improved APIs for Swift and SwiftUI. Swift code must link against SRGAppearanceSwift to use these APIs.

Minimum deployment target

The minimum deployment target has been bumped to iOS 12.

Assertion removal in release builds

11 Dec 10:00
Compare
Choose a tag to compare

Ensure assertions are never fired in release builds.

Xcode crash fix

28 Oct 14:51
Compare
Choose a tag to compare

This release packages resources differently to avoid Xcode crashing for some projects when attempting to run a unit test target.