Latest 0.2.1
Homepage https://github.com/devxoul/GenericReusable
License MIT
Platforms ios 8.0, osx 10.9, tvos 9.0, requires ARC
Authors

ReusableKit

Swift
Build Status
CocoaPods
Carthage compatible

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.registerView(Reusable.headerView)
tableView.registerCell(Reusable.userCell)

tableView.dequeueView(Reusable.userCell)
tableView.dequeueCell(Reusable.userCell)
UICollectionView
struct Reusable {
    static let headerView = ReusableCell<SectionHeaderView>()
    static let photoCell = ReusableCell<PhotoCell>()
}

collection.registerView(Reusable.headerView, kind: .Header)
collection.registerCell(Reusable.photoCell)

collection.dequeueView(Reusable.headerView, kind: .Header)
collection.dequeueCell(Reusable.photoCell, forIndexPath: indexPath)
Anything Else?

Pull requests are welcomed 💖

Installation

  • For iOS 8+ projects with CocoaPods:

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

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

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

License

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

Latest podspec

{
    "name": "GenericReusable",
    "version": "0.2.1",
    "summary": "Generic reusables for Cocoa.",
    "homepage": "https://github.com/devxoul/GenericReusable",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Suyeol Jeon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/devxoul/GenericReusable.git",
        "tag": "0.2.1"
    },
    "source_files": "Sources/*.swift",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "tvos": "9.0"
    },
    "deprecated_in_favor_of": "ReusableKit"
}

Pin It on Pinterest

Share This