{"id":2849,"url":"https://github.com/DenTelezhkin/DTTableViewManager","last_synced_at":"2025-08-06T16:32:07.566Z","repository":{"id":4844516,"uuid":"5998758","full_name":"DenTelezhkin/DTTableViewManager","owner":"DenTelezhkin","description":"Protocol-oriented UITableView management, powered by generics and associated types.","archived":false,"fork":false,"pushed_at":"2024-07-16T14:05:46.000Z","size":5171,"stargazers_count":452,"open_issues_count":0,"forks_count":48,"subscribers_count":22,"default_branch":"main","last_synced_at":"2024-10-30T05:55:30.534Z","etag":null,"topics":["datasource","delegate","ios","protocol","swift","uitableview"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"pmwkaa/sophia","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DenTelezhkin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"Supporting files/Framework.plist","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-09-28T14:56:08.000Z","updated_at":"2024-07-16T14:05:50.000Z","dependencies_parsed_at":"2024-11-13T00:00:39.230Z","dependency_job_id":"c9dff0ae-fcd3-409d-8700-f4d1126305d9","html_url":"https://github.com/DenTelezhkin/DTTableViewManager","commit_stats":{"total_commits":885,"total_committers":14,"mean_commits":"63.214285714285715","dds":"0.11186440677966103","last_synced_commit":"ebb417e4dc3024baf6eca53fc580c84b63b77453"},"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenTelezhkin%2FDTTableViewManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenTelezhkin%2FDTTableViewManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenTelezhkin%2FDTTableViewManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenTelezhkin%2FDTTableViewManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DenTelezhkin","download_url":"https://codeload.github.com/DenTelezhkin/DTTableViewManager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228923746,"owners_count":17992573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datasource","delegate","ios","protocol","swift","uitableview"],"created_at":"2024-01-05T20:16:24.457Z","updated_at":"2024-12-09T16:31:17.173Z","avatar_url":"https://github.com/DenTelezhkin.png","language":"Swift","readme":"![CI](https://github.com/DenTelezhkin/DTTableViewManager/workflows/CI/badge.svg)\n[![codecov.io](http://codecov.io/github/DenTelezhkin/DTTableViewManager/coverage.svg?branch=main)](http://codecov.io/github/DenTelezhkin/DTTableViewManager?branch=main)\n![CocoaPod platform](https://cocoapod-badges.herokuapp.com/p/DTTableViewManager/badge.svg)\n![CocoaPod version](https://cocoapod-badges.herokuapp.com/v/DTTableViewManager/badge.svg)\n[![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)\n[![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg)]()\n\nDTTableViewManager\n================\n## Features\n\n- [x] Powerful mapping system between data models and cells, headers and footers\n- [x] Automatic datasource and interface synchronization.\n- [x] Flexible Memory/CoreData/Realm/diffable datasource storage options\n- [x] Powerful compile-time safe events system, that covers all of UITableView delegate methods\n- [x] Views created from code, XIB, or storyboard, automatic registration and dequeue\n- [x] Can be used with UITableViewController, or UIViewController with UITableView\n- [x] Unified syntax with [DTCollectionViewManager](https://github.com/DenTelezhkin/DTCollectionViewManager)\n- [x] Support for SwiftUI - backed cells in iOS 13+ / tvOS 13+ / macCatalyst 13+\n- [x] [Complete documentation](Documentation)\n- [x] [API Reference](https://dentelezhkin.github.io/DTTableViewManager/)\n\n[Read more](https://dev.to/dentelezhkin/whats-new-in-dttableviewcollectionviewmanager-11-44co) about latest 11.0 release and integration with SwiftUI!\n\n## Requirements\n\n* Xcode 13+\n* iOS 11.0+ / tvOS 11.0+ / macCatalyst 13.0+\n* Swift 5.3+\n\n\u003e If you need Xcode 11 support or Swift 4...Swift 5.2, or iOS 8...iOS 10 support, you can use 7.x releases.\n\n## Installation\n\n### Swift Package Manager\n\nAdd package into Xcode Project settings -\u003e Swift Packages\n\n### [CocoaPods](http://www.cocoapods.org):\n\n    pod 'DTTableViewManager', '~\u003e 11.0.0'\n\n## Quick start\n\nLet'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:\n\n1. Create UITableViewCell subclass, let's say PostCell and adopt `ModelTransfer` protocol:\n\n```swift\nclass PostCell : UITableViewCell, ModelTransfer {\n    func update(with model: Post) {\n        // Fill your cell with actual data\n    }\n}\n```\n\n2. In your view controller:\n\n```swift\nclass PostsViewController: UITableViewController, DTTableViewManageable {\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        // Register PostCell to be used with this controller's table view\n        manager.register(PostCell.self)\n\n        // Populate datasource\n        manager.memoryStorage.setItems(posts)\n    }\n}    \n```\n\nMake 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.\n\n3. That's it! It's that easy!\n\nOf 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.\n\n## Burning questions\n\n###### Starter pack\n\n* **[Why do I need this library?](Documentation/Why.md)**\n* [How data models are mapped to cells?](Documentation/Mapping.md)\n* [Can I show SwiftUI views in UITableViewCells?](Documentation/SwiftUI.md)\n* [Can I use unsubclassed UITableViewCell or UITableViewHeaderFooterView?](Documentation/Mapping.md#without-modeltransfer)\n* [How can I register views to dequeue from code/xib/storyboard?](Documentation/Registration.md)\n* [How can I use the same cells differently in different places?](Documentation/Conditional%20mappings.md)\n* [What datasource options do I have?(e.g. memory/CoreData/Realm/diffable datasources)](Documentation/Datasources.md)\n* [How can I implement datasource/delegate methods from `UITableView`?](Documentation/Events.md)\n\n###### Advanced\n\n* [SwiftUI-backed cells](Documentation/SwiftUI.md)\n* [Can I implement delegate methods instead of using DTTableViewManager event closures?](Documentation/Events.md#can-i-still-use-delegate-methods)\n* [How can I react to and customize UITableView updates?](Documentation/TableViewUpdater.md)\n* [What can be additionally configured when using DTTableViewManager with UITableView?](Documentation/TableViewConfiguration)\n* [What if something goes wrong?](Documentation/Anomalies.md)\n\n## Sample code and documentation\n\n* [DTTableViewManager sample code](Example)\n* [Documentation](Documentation)\n* [Sample code for Drag\u0026Drop integration](https://github.com/DenTelezhkin/DTDragAndDropExample)\n\n## Thanks\n\n* [Alexey Belkevich](https://github.com/belkevich) for providing initial implementation of CellFactory.\n* [Michael Fey](https://github.com/MrRooni) for providing insight into NSFetchedResultsController updates done right.\n* [Nickolay Sheika](https://github.com/hawk-ukr) for great feedback, that helped shaping 3.0 release and future direction of the library.\n* [Artem Antihevich](https://github.com/sinarionn) for great discussions about Swift generics and type capturing.\n","funding_links":[],"categories":["UI","Libs","Swift","UI [🔝](#readme)"],"sub_categories":["Table View / Collection View","UI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDenTelezhkin%2FDTTableViewManager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDenTelezhkin%2FDTTableViewManager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDenTelezhkin%2FDTTableViewManager/lists"}