RainKit is a swift extensions collection that allow you to use builder pattern to setting UIKit component in a quick and elegant chained-way.
Using RainKit, you can make UI setup super easy:
simpleLabel
.backgroundColor(.black)
.text("Simple")
.textColor(.white)
.numberOfLines(0)
CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. For any detail you can visit their website. To integrate RainKit into your Xcode project using CocoaPods, add below line in your Podfile
:
pod 'RainKit'
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate RainKit into your Xcode project using Carthage, add below line in your Cartfile
:
github "RainKit"
UIView
- isUserInteractionEnabled
- clipsToBounds
- backgroundColor
- isHidden
- addGestureRecognizer
- cornerRadius
- masksToBounds
- borderWidth
- borderColor
- others...
UIButton
- title
- titleColor
- font
- image
- backgroundImage
- others...
UILabel
- text
- textColor
- font
- numberOfLines
- others...
UIScrollView
- scrollViewDelegate
- alwaysBounceVertical
- alwaysBounceHorizontal
- isPagingEnabled
- isScrollEnabled
- contentInset
- contentOffset
- contentSize
- others...
UITableView
- dataSource
- delegate
- separatorStyle
- estimatedRowHeight
- others...
UICollectionView
- dataSource
- delegate
- others...
- ⚡️UIWindow
- ⚡️UIView
- ⚡️UIControl
- ⚡️UIImageView
- ⚡️UIButton
- ⚡️UILabel
- ⚡️UIStackView
- ⚡️UISearchBar
- ⚡️UIScrollView
- ⚡️UITableView
- ⚡️UICollectionView
- ⚡️UINavigationBar
- ⚡️UINavigationItem
- ⚡️UIBarButtonItem
- ⚡️UIViewController
- ⚡️SFSafariViewController
- ⚡️MKMapView
- iOS 10 or later
- Swift 4.0+
RainKit is available under the MIT license. See the LICENSE file for more info.