ReusableKit 1.1.0

ReusableKit 1.1.0

DocsDocumented
TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2016
SPMSupports SPM

Maintained by Suyeol Jeon.


Downloads

Total4,662
Week280
Month1,060

Installs

Apps132
Apps WeekApps This Week 21
Test Targets20
Test WeekTests This week 3
powered by Segment

GitHub

Stars27
Watchers0
Forks1
Issues0
Contributors1
Pull Requests0

Code

Files3
SizeIntegration Size 20 kb
FrameworkCreates Framework
LOCLines of Code 115


  • By
  • Suyeol Jeon

ReusableKit

Generic reusables for Cocoa. Currently supports UITableView and UICollectionView.

At a Glance

UITableView
struct Reusable {
  static let headerView = ReusableCell<SectionHeaderView>()
  static let userCell = ReusableCell<UserCell>()
}

tableView.register(Reusable.headerView)
tableView.register(Reusable.userCell)

tableView.dequeue(Reusable.headerView, for: indexPath)
tableView.dequeue(Reusable.userCell, for: indexPath)
UICollectionView
struct Reusable {
  static let headerView = ReusableCell<SectionHeaderView>()
  static let photoCell = ReusableCell<PhotoCell>()
}

collection.register(Reusable.headerView, kind: .header)
collection.register(Reusable.photoCell)

collection.dequeue(Reusable.headerView, kind: .header, for: indexPath)
collection.dequeue(Reusable.photoCell, for: indexPath)
Anything Else?

Pull requests are welcomed 💖

Installation

  • For iOS 8+ projects with CocoaPods:

    pod 'ReusableKit', '~> 1.1'
  • For iOS 8+ projects with Carthage:

    github "devxoul/ReusableKit" ~> 1.1
    
  • For iOS 7 projects with CocoaSeeds:

    github 'devxoul/ReusableKit', '1.1.0', :files => 'Sources/*.swift'

License

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