mugbug / BricksAndTiles

🧱 A composable solution for building reusable lists in Swift/UIKit. As easy as playing with Legos.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stability-wip platforms Swift Package Manager compatible

BricksAndTiles

🧱 A composable solution for building reusable lists in Swift/UIKit. As easy as playing with Legos.

Features

UITableView

  • Static cells
  • Draggable cells

  • Cells with actions on slide

  • Single selection

UICollectionView

  • Static collection cells

  • Grid collection cells

UITableView + UICollectionView

  • Horizontal list cells

Installation

BricksAndTiles currently supports these installation options:

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 BricksAndTiles as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(
        url: "https://github.com/mugbug/BricksAndTiles.git", 
        from: "0.0.3"
    ),
]

If you're using SPM through Xcode:

  1. Go to File > Swift Packages > Add Package Dependency
  2. Enter https://github.com/mugbug/BricksAndTiles
  3. Choose a rule and submit.

CocoaPods

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

pod 'BricksAndTiles', '0.0.3'

BricksAndTiles is also available as subspecs:

  • For only UITableView features:
pod 'BricksAndTiles/TableView', '0.0.3'
  • For only UICollectionView features:
pod 'BricksAndTiles/CollectionView', '0.0.3'

Dependencies

This package depends on PaintAndBrush, which is a super lightweight package with helper extensions for building UIKit views in code.

Contributing

Any kind of contributions would be highly appreciated! To start contributing, read the Contributing Guideline for info on how to report issues, submit ideas and submit pull requests!

Authors

About

🧱 A composable solution for building reusable lists in Swift/UIKit. As easy as playing with Legos.

License:MIT License


Languages

Language:Swift 98.4%Language:Ruby 1.1%Language:Objective-C 0.5%