Skip to the content.

ReusableProtocol

CI Status Version License Platform Laguage CocoaPods LeoDev GitHub stars

🎏 ReusableProtocol is a helpful and pure Swift implemented library for registering and reusing cells or views in the table view and collection view. You may never care about what the reuse identifier is.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding ReusableProtocol as a dependency is as easy as adding it to the dependencies value of your Package.swift or the Package list in Xcode.

dependencies: [
  .package(url: "https://github.com/iTofu/ReusableProtocol.git", .upToNextMajor(from: "0.2.0"))
]

Normally you’ll want to depend on the ReusableProtocol target:

.product(name: "ReusableProtocol", package: "ReusableProtocol")

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate ReusableProtocol into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'ReusableProtocol'

Usage

Author

Leo, leodaxia@gmail.com

License

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