Skip to content
A handy extensions collection to speed up UIKit components setup.
Swift Ruby
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets
Example
RainKit
.gitignore
.travis.yml
LICENSE
README.md
RainKit.podspec
_Pods.xcodeproj

README.md

RainKit

CI Status Version Carthage compatible License Platform

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)

Installation

CocoaPods

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

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"

Common Usage

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...

UIKit Components Support

  • ⚡️UIWindow
  • ⚡️UIView
  • ⚡️UIControl
  • ⚡️UIImageView
  • ⚡️UIButton
  • ⚡️UILabel
  • ⚡️UIStackView
  • ⚡️UISearchBar
  • ⚡️UIScrollView
  • ⚡️UITableView
  • ⚡️UICollectionView
  • ⚡️UINavigationBar
  • ⚡️UINavigationItem
  • ⚡️UIBarButtonItem
  • ⚡️UIViewController
  • ⚡️SFSafariViewController
  • ⚡️MKMapView

Requirements

  • iOS 10 or later
  • Swift 4.0+

License

RainKit is available under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.