Since the consistency in UI style is overwhelming our work, I need a system to avoid the chaos style. The idea is by providing several json which define separate categories of styles, and then programers writes out style code in Decorator Code, finally matching them by Tags.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Strongly suggest to refer the example code, must to prepare decorator code and style file by yourself
BMUIDecoratorStoresManager.default.autoGenerate(storeName: STORENAME, decoratorCode: DECORATORCODE)
using func decoratorActive to active styles, recommend doning the way by enum, avoiding some keying mistake
func decoratorActive<T>(uiTags: [T])
iOS 9.0 + Swift 5
BMUIDecorator is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'BMUIDecorator'
LEE ZHE YU, [email protected]
BMUIDecorator is available under the MIT license. See the LICENSE file for more info.