the ObjectiveC version please refers to ObjC branch.
the library provide a simple interface to use theme/skin manager for iOS8+, including
- backgroundColor
- borderColor
- gradientColor
- font family and size
- image or tint image
- attributed string foreground/background color
also provide a simple way to add the theme/skin ability for other UI element.
cd Example
pod install
open Example.xcworkspace
then click 'change theme'.
change theme with
LWThemeManager.sharedInstance.useThemeMode(_ mode : LWThemeMode, themeMap : NSDictionary)
theme map is a dictionary, defined with color key, font family name and size (conjunction with ':'), image name for different mode.
you can defined yours theme map as below: