Add support for dynamic style updates
Closed this issue · 0 comments
ekille commented
Support for dynamic stylesheet, provides a mechanism to change stylesheets and notify observers of the change
The user can call StyleKit.sharedInstance.revert()
after they have updated the stylesheet. All view objects styled going forward will use the new styles. Any view controllers or objects which need to be aware of the change to subscribe to updates using:
StyleKit.sharedInstance.registerForStylesheetUpdates(subscriber: AnyObject)