Skip to content

TypographyKit 5.0.0-alpha1

Compare
Choose a tag to compare
@rwbutler rwbutler released this 31 Jan 12:51
· 48 commits to main since this release

[5.0.0] - 2023-01-31

Added

  • Properties color and swiftUI allow a SwiftUI Color to be obtained from a TypographyKitColor.
  • All methods & properties previously accessed using TypographyKit. may now be accessed using the shortened form: TK..
  • Support for RGBA colour values e.g. rgba(255,255,255,255).
  • Support for hexadecimal color values with transparency e.g. #FFFFFFFF.

Changed

  • TypographyKit.colors should no longer be used. Instead use:
    • For SwiftUI: TypographyKit.color(named:) or TK.color(named:).
    • For UIKit: TypographyKit.uiColor(named:) or TK.uiColor(named:).
    • Or: TypographyKit.tkColor(named:).color (for SwiftUI) or TypographyKit.tkColor(named:).uiColor (for UIKit).
  • ConfigurationSettings renamed to TypographyKitConfiguration. This object contains the configuration values supplied by the developer (along with any default configuration values).
  • TypgraphyKitConfiguration renamed to TypographyKitSettings. This object contains the current configuration as well as loaded colors and typography styles.