{"id":15038931,"url":"https://github.com/gopherlabsltd/swiftydequeuable","last_synced_at":"2026-03-15T18:15:34.475Z","repository":{"id":62456930,"uuid":"100819035","full_name":"GopherLabsLtd/SwiftyDequeuable","owner":"GopherLabsLtd","description":"⚡ A more simpler way to Dequeue Cells in Swift","archived":false,"fork":false,"pushed_at":"2017-10-30T03:01:51.000Z","size":57,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T15:16:46.785Z","etag":null,"topics":["cocoapods","dequeue-cells","elegant","swift","swift-4","uicollectionview","uicollectionviewcell","uitableview","uitableviewcell"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/GopherLabsLtd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-19T20:15:37.000Z","updated_at":"2019-11-29T02:26:08.000Z","dependencies_parsed_at":"2022-11-01T23:03:42.199Z","dependency_job_id":null,"html_url":"https://github.com/GopherLabsLtd/SwiftyDequeuable","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GopherLabsLtd%2FSwiftyDequeuable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GopherLabsLtd%2FSwiftyDequeuable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GopherLabsLtd%2FSwiftyDequeuable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GopherLabsLtd%2FSwiftyDequeuable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GopherLabsLtd","download_url":"https://codeload.github.com/GopherLabsLtd/SwiftyDequeuable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428437,"owners_count":20289317,"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":["cocoapods","dequeue-cells","elegant","swift","swift-4","uicollectionview","uicollectionviewcell","uitableview","uitableviewcell"],"created_at":"2024-09-24T20:40:49.219Z","updated_at":"2025-12-25T18:41:44.495Z","avatar_url":"https://github.com/GopherLabsLtd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/GopherLabsLtd/SwiftyDequeuable.svg?branch=master)](https://travis-ci.org/GopherLabsLtd/SwiftyDequeuable) [![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Chamber.svg)](https://img.shields.io/cocoapods/v/SwiftyDequeuable.svg)\n[![Platform](https://img.shields.io/cocoapods/p/Chamber.svg?style=flat)](http://cocoadocs.org/docsets/SwiftyDequeuable)\n[![CocoaPods](https://img.shields.io/cocoapods/l/SwiftyDequeuable.svg)]()\n# SwiftyDequeuable\n\nSwiftyDequeuable is a a more Elegant way to dequeue cells with a UITableView or a UICollectionView.\n\nWith Swift, we have the power of Protocol Oriented Programming +  Protocol Extensions and with using Generics we can simplify these redundant processes.\n\nWe go from...\n\n```swift\noverride func viewDidLoad() {\n     super.viewDidLoad()\n\n     let nibName = UINib(nibName: \"SimpleLabelCell\", bundle:nil)\n     tableView.registerNib(nibName, forCellReuseIdentifier: \"SimpleLabelCell\")\n }\n\n```\n\nTo something a little more Elegant...\n\n```swift\noverride func viewDidLoad() {\n    super.viewDidLoad()\n\n    tableView.registerNib(SimpleLabelCell.self)\n}\n\n```\n\nNo more strings!\n\n## Installation\n\n### Cocoapods\n\n```cocoapods\n  pod 'SwiftyDequeuable'\n```\n\n## Usage\nCreate a new cell with the corresponding .xib\n\n```swift\nimport UIKit\n\nclass SimpleLabelCell: UITableViewCell {\n    @IBOutlet weak var label: UILabel!\n}\n\n```\n\nIn your ```viewDidLoad``` register your cell (or where ever you usually register your cells)\n\n```swift\noverride func viewDidLoad() {\n    super.viewDidLoad()\n\n    tableView.registerNib(SimpleLabelCell.self)\n}\n\n```\n\nIn your ```cellForRowAt``` of your ```UITableViewDatasource``` you can dequeue the cell by...\n\n```swift\nfunc tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -\u003e UITableViewCell {\n  // If we cannot dequeue cell, a fatal error would be thrown.\n  let cell = tableView.dequeueReusableCell(SimpleLabelCell.self, forIndexPath: indexPath)\n  return cell\n}\n```\n\nSwiftyDequeuable also supports ```UICollectionView```, the steps are very to the ones above. Have a look at the [Example](/SwiftyDequeuableExample).\n\n## License\n\nSwiftyDequeuable is released under an MIT license. See [License.md](License.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopherlabsltd%2Fswiftydequeuable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgopherlabsltd%2Fswiftydequeuable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopherlabsltd%2Fswiftydequeuable/lists"}