{"id":2843,"url":"https://github.com/dimpiax/FlexibleTableViewController","last_synced_at":"2025-08-03T12:31:23.574Z","repository":{"id":29398213,"uuid":"32933497","full_name":"dimpiax/FlexibleTableViewController","owner":"dimpiax","description":"Generic table view controller with external data processing","archived":false,"fork":false,"pushed_at":"2018-01-08T23:24:29.000Z","size":119,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-26T12:35:25.953Z","etag":null,"topics":["flexible","library","swift","swift4","tableview"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimpiax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-26T14:52:30.000Z","updated_at":"2018-05-20T18:24:50.000Z","dependencies_parsed_at":"2022-08-31T23:51:34.153Z","dependency_job_id":null,"html_url":"https://github.com/dimpiax/FlexibleTableViewController","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpiax%2FFlexibleTableViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpiax%2FFlexibleTableViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpiax%2FFlexibleTableViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpiax%2FFlexibleTableViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimpiax","download_url":"https://codeload.github.com/dimpiax/FlexibleTableViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228543149,"owners_count":17934433,"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":["flexible","library","swift","swift4","tableview"],"created_at":"2024-01-05T20:16:24.300Z","updated_at":"2024-12-07T00:31:00.852Z","avatar_url":"https://github.com/dimpiax.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Table View / Collection View","Layout","Other free courses"],"readme":"# FlexibleTableViewController\n\n[![Language](https://img.shields.io/badge/swift-4.0-fec42e.svg)](https://swift.org/blog/swift-4-0-released/)\n[![Version](https://img.shields.io/cocoapods/v/FlexibleTableViewController.svg?style=flat)](http://cocoapods.org/pods/FlexibleTableViewController)\n[![License](https://img.shields.io/cocoapods/l/FlexibleTableViewController.svg?style=flat)](http://cocoapods.org/pods/FlexibleTableViewController)\n[![Platform](https://img.shields.io/cocoapods/p/FlexibleTableViewController.svg?style=flat)](http://cocoapods.org/pods/FlexibleTableViewController)\n\nSwift library of generic table view controller with external data processing of functionality,\nlike determine cell's `reuseIdentifier` related to `indexPath`, \nconfiguration of requested cell for display and cell selection handler etc\n\n\u003cimg src=thumbnail.png width=25% height=25% /\u003e\n\n## Example\n\nInitialization and cell registering. \n```swift\nlet flexibleTableVC = FlexibleTableViewController\u003cCustomCellData, OrderedListGenerator\u003cCustomCellData\u003e\u003e(style: .plain, configuration: TableConfiguation())\nflexibleTableVC.register(CustomUITableViewCell.self, forCellReuseIdentifier: CustomUITableViewCell.reuseIdentifier)\n```\n\nDefine \"reuse identifier\" relatively to indexPath:\n```swift\nflexibleTableVC.requestCellIdentifier = { indexPath in\n  return CustomUITableViewCell.reuseIdentifier\n}\n```\n\nConfigure cell relatively to data:\n```swift\nflexibleTableVC.configureCell = { (cell: UITableViewCell, data: CustomCellData?) in\n  guard let data = data else { return false }\n\n  if let detailedData = data as? DetailedCustomCellData {\n    cell.textLabel?.text = detailedData.title\n    cell.detailTextLabel?.text = detailedData.detailed\n  }\n\n  cell.backgroundColor = data.backgroundColor\n\n  return true\n}\n```\n\nProcess cell select here:\n```swift\nflexibleTableVC.cellDidSelect = { indexPath in\n  // return true for immediately deselection\n  return true\n}\n```\n\n## Requirements\n\nUpdated to Swift 4\n\n###### For Swift 3.1 version use [v.2.0.6](../../releases/tag/2.0.6)\n###### For Swift 2.2 version use [v.1.1.0](../../releases/tag/1.1.0)\n\n## Installation\n\nFlexibleTableViewController is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"FlexibleTableViewController\"\n```\n\n## Author\n\nPilipenko Dima, dimpiax@gmail.com\n\n##### Also article on Medium: https://medium.com/@dimpiax/swift-flexibletableviewcontroller-dbd17087e0b9\n\n## License\n\nFlexibleTableViewController is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimpiax%2FFlexibleTableViewController","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimpiax%2FFlexibleTableViewController","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimpiax%2FFlexibleTableViewController/lists"}