ReusableKit 1.1.0

ReusableKit 1.1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2016
SPMSupports SPM

Maintained by Suyeol Jeon.


Downloads

Total6,943
Week228
Month1,323

Installs

Apps186
Apps WeekApps This Week 31
Test Targets34
Test WeekTests This week 5
powered by Segment

GitHub

Stars31
Watchers0
Forks1
Issues0
Contributors1
Pull Requests0

Code

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