Stylish v0.7 Release Notes

Release Date: 2017-10-01 // over 6 years ago
  • Due to some early obstacles with IBDesignable and resolving types and resources across bundles, Stylish has until now been a single large Swift file that gets dropped into a client app. This, however, makes it difficult to manage as a dependency, and can also create problems for apps that want to use Stylish while also using a library that itself uses Stylish.

    🚀 Happily, this is now fixed and Stylish is a Swift framework that can be included as a subproject (using Apple's current recommendations) and linked into a client app target. This release includes a lot of reorganization to enable that, and also includes a variety of other improvements that have been needed or requested:

    🛠 Fixes Issue #7 by changing JSONStyleProperty from an enum with a fixed number of cases to a type that client apps can register new instances of, to allow the parsing of different kinds of properties from JSON stylesheets

    🛠 Fixes Issue #9 by creating static methods on Stylish that allows client apps to register their own custom dynamic property sets and shared style classes without needing to subclass existing Stylesheets (like JSONStylesheet) to override them.

    ⚡️ Updated to the StylishExample project to demonstrate usage and linking of Stylish as a framework

    ⚡️ Updated to recommended project settings for Xcode 9

    ➕ Added additional comments, cleanup, small fixes throughout