Stylish v0.5 Release Notes

Release Date: 2016-06-10 // almost 8 years ago
  • πŸ”– Version 0.5 contains the first major cleanup and polish pass, along with some significant changes:

    • βœ‚ Removed MutableStyleClass protocol as unnecessary to protect against shared mutable state since style classes are reinitialized for each consumer
    • βž• Added StylePropertySet protocol and struct concept as a new mechanism for grouping properties for different types of views. This is for easier location of desired properties, clearer context, and to avoid collision of multiple properties with the same name that do different things in different classes. This change also allows for easier declarations of style properties that no longer require arcane calls to computed getters and setters
      πŸ’… 
- Added DynamicStylePropertySet protocol to optionally and additionally implement a way to interact with style properties using string identifiers instead of direct reference. This is necessary to work with dynamic stylesheets composed at runtime from, for example, JSON files

    • πŸ’… Full JSONStylesheet support and implementation. Now all properties and values currently styleable via code are now able to be expressed in JSON as well.
    • πŸ’… Updated Stylish Example project to use all the new changes, and to demonstrate a fully equivalent stylesheet defined in JSON
    • ⚑️ Large update to README and code comments added throughout project