Skip to content

kuotinyen/RainKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A handy extensions collection to speed up UIKit components setup.

Resources

License

Stars

Watchers

Forks

Packages

No packages published