[![CI Status](http://img.shields.io/travis/Keun young Kim/TWKit.svg?style=flat)](https://travis-ci.org/Keun young Kim/TWKit)
TWKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TWKit'
OR
pod 'TWKit/EasyStyle'
pod 'TWKit/GetConstraint'
pod 'TWKit/AttributedString'
pod 'TWKit/KeyboardHelper'
pod 'TWKit/ObjectPool'
pod 'TWKit/StructObject'
pod 'TWKit/Function'
pod 'TWKit/Extension'
###EasyStyle
let manger = EasyStyleManager.sharedInstance
manger.registerStyle("sample") { view in
if let label = view as? UILabel {
label.backgroundColor = UIColor.blueColor()
}
}
manger.registerStyle("test") { view in
if let label = view as? UILabel {
label.textColor = UIColor.cyanColor()
}
}
####Applying Styles:
#####Code:
view.easyStyle = "sample, test"
taewankim, [email protected]
MIT
Inspired by projects: