Skip to content

Version 2.0.0

Latest
Compare
Choose a tag to compare
@dscyrescotti dscyrescotti released this 29 Aug 16:19
· 1 commit to main since this release

What's new in Version 2.0.0?

  • As Version 2.0.0 is intended to provide a better developer experience, the API has been changed as below.
    • The API comes with the new style of declaration of themes.
    • To provide default theme and appearance, it starts using DefaultTheming instead of injecting default values into themeProviding(defaultTheme:defaultAppearance:).
    • It no longer uses the generic types in Themed and ThemeProvider.
    • All different types of asset is needed to declare separately instead of defining in value type conforming to Assetable.
    • To access interface elements (colors, images, etc), it is no longer required to pass the instance of ThemeProvider so that all interface elements can be initialized with respective asset keys.

To see more, pls read MigrationGuide.md.

  • SwiftTheming provides the documentation that helps developers explore the API in ease.
  • Version 2.0.0 includes unit testing that covers around 95% of the API.