All Projects → DenTelezhkin → Dttableviewmanager

DenTelezhkin / Dttableviewmanager

Licence: mit
Protocol-oriented UITableView management, powered by generics and associated types.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Dttableviewmanager

Dtcollectionviewmanager
Protocol-oriented UICollectionView management, powered by generics and associated types.
Stars: ✭ 300 (-29.25%)
Mutual labels:  datasource, protocol, delegate
Rglistkit
RGListKit is a Protocol & MVVM based framework to easily populate a UITableView or UICollectionView via single api.
Stars: ✭ 178 (-58.02%)
Mutual labels:  datasource, protocol, uitableview
Carbon
🚴 A declarative library for building component-based user interfaces in UITableView and UICollectionView.
Stars: ✭ 1,034 (+143.87%)
Mutual labels:  datasource, delegate, uitableview
Thinningcoordinator
The UITableView/UICollectionView dataSource/delegate thinning coordinator, help thinning your UIViewController!
Stars: ✭ 25 (-94.1%)
Mutual labels:  datasource, delegate, uitableview
TinyCoordinator
The Swift version of ThinningCoordinator focus on lighter view controllers.
Stars: ✭ 18 (-95.75%)
Mutual labels:  uitableview, delegate, datasource
Flowkit
A declarative type-safe framework for building fast and flexible list with Tables & Collection
Stars: ✭ 215 (-49.29%)
Mutual labels:  datasource, delegate, uitableview
Closures
Swifty closures for UIKit and Foundation
Stars: ✭ 1,720 (+305.66%)
Mutual labels:  datasource, uitableview
Datasource
Simplifies the setup of UITableView data sources using type-safe descriptors for cells and sections. Animated diffing built-in.
Stars: ✭ 72 (-83.02%)
Mutual labels:  datasource, uitableview
Genericdatasource
A generic small reusable components for data source implementation for UITableView/UICollectionView in Swift.
Stars: ✭ 127 (-70.05%)
Mutual labels:  datasource, uitableview
CollectionAndTableViewCompatible
A set of Swift protocols and Xcode snippets that will make it easy to do clean UITableView code
Stars: ✭ 34 (-91.98%)
Mutual labels:  uitableview, protocol
iOSEasyList
A data-driven UICollectionView and UITableView framework for building fast and flexible lists
Stars: ✭ 29 (-93.16%)
Mutual labels:  uitableview, datasource
Miraigo
qq协议的golang实现, 移植于mirai
Stars: ✭ 404 (-4.72%)
Mutual labels:  protocol
Ezplayer
基于AVPlayer封装的视频播放器,功能丰富,快速集成,可定制性强,支持react-native。
Stars: ✭ 377 (-11.08%)
Mutual labels:  uitableview
Foldingtabbar.ios
Folding Tab Bar and Tab Bar Controller
Stars: ✭ 3,677 (+767.22%)
Mutual labels:  protocol
Ceras
Universal binary serializer for a wide variety of scenarios https://discord.gg/FGaCX4c
Stars: ✭ 374 (-11.79%)
Mutual labels:  protocol
Fastbinaryencoding
Fast Binary Encoding is ultra fast and universal serialization solution for C++, C#, Go, Java, JavaScript, Kotlin, Python, Ruby, Swift
Stars: ✭ 421 (-0.71%)
Mutual labels:  protocol
Lpdmvvmkit
LPDMvvmKit - Elegant MVVM framework in Objective-C.
Stars: ✭ 400 (-5.66%)
Mutual labels:  uitableview
Bento
Swift library for building component-based interfaces on top of UITableView and UICollectionView 🍱
Stars: ✭ 371 (-12.5%)
Mutual labels:  uitableview
Sandwich
🥪 A lightweight and standardized Android network response interface for handling successful data and error responses.
Stars: ✭ 370 (-12.74%)
Mutual labels:  datasource
Unlock
Ʉnlock is a protocol for memberships built on a blockchain.
Stars: ✭ 365 (-13.92%)
Mutual labels:  protocol

CI codecov.io CocoaPod platform CocoaPod version Swift Package Manager compatible Packagist

DTTableViewManager

Features

  • [x] Powerful mapping system between data models and cells, headers and footers
  • [x] Automatic datasource and interface synchronization.
  • [x] Flexible Memory/CoreData/Realm/diffable datasource storage options
  • [x] Powerful compile-time safe events system, that covers all of UITableView delegate methods
  • [x] Views created from code, XIB, or storyboard, automatic registration and dequeue
  • [x] Can be used with UITableViewController, or UIViewController with UITableView
  • [x] Unified syntax with DTCollectionViewManager
  • [x] Complete documentation
  • [x] API Reference

Requirements

  • Xcode 12+
  • iOS 11.0+ / tvOS 11.0+ / macCatalyst 13.0+
  • Swift 5.3+

If you need Xcode 11 support or Swift 4...Swift 5.2, or iOS 8...iOS 10 support, you can use 7.x releases.

Installation

Swift Package Manager

Add package into Xcode Project settings -> Swift Packages

CocoaPods:

pod 'DTTableViewManager', '~> 8.0.0'

Quick start

Let's say you have an array of Posts you want to display in UITableView. To quickly show them using DTTableViewManager, here's what you need to do:

  1. Create UITableViewCell subclass, let's say PostCell and adopt ModelTransfer protocol:
class PostCell : UITableViewCell, ModelTransfer {
    func update(with model: Post) {
        // Fill your cell with actual data
    }
}
  1. In your view controller:
class PostsViewController: UITableViewController, DTTableViewManageable {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Register PostCell to be used with this controller's table view
        manager.register(PostCell.self)

        // Populate datasource
        manager.memoryStorage.setItems(posts)
    }
}    

Make sure your UITableView outlet is wired to your class (or use UITableViewController subclass). If you have a PostCell.xib file, it will be automatically used for dequeueing PostCell.

  1. That's it! It's that easy!

Of course, cool stuff does not stop there, framework supports all datasource and delegate methods as closures, conditional mappings and much much more! Choose what interests you in the next section of readme.

Burning questions

Starter pack
Advanced

Sample code and documentation

Thanks

  • Alexey Belkevich for providing initial implementation of CellFactory.
  • Michael Fey for providing insight into NSFetchedResultsController updates done right.
  • Nickolay Sheika for great feedback, that helped shaping 3.0 release and future direction of the library.
  • Artem Antihevich for great discussions about Swift generics and type capturing.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].