Swiftpack.co - DenTelezhkin/DTTableViewManager as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
DenTelezhkin/DTTableViewManager 9.0.0-beta.1
Protocol-oriented UITableView management, powered by generics and associated types.
⭐️ 433
πŸ•“ 15 weeks ago
iOS tvOS
.package(url: "https://github.com/DenTelezhkin/DTTableViewManager.git", from: "9.0.0-beta.1")

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



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


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


Swift Package Manager

Add package into Xcode Project settings -> Swift Packages


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() {

        // Register PostCell to be used with this controller's table view

        // Populate datasource

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

Sample code and documentation


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


Stars: 433
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

15 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics