{"id":22370358,"url":"https://github.com/dreaminginbinary/genericdatasource","last_synced_at":"2025-07-30T20:31:43.188Z","repository":{"id":56912647,"uuid":"43233413","full_name":"DreamingInBinary/GenericDatasource","owner":"DreamingInBinary","description":"A Swift implementation of a generic datasource that you can use for table views.","archived":false,"fork":false,"pushed_at":"2016-05-06T23:16:44.000Z","size":275,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-15T04:47:24.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DreamingInBinary.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-09-27T03:51:56.000Z","updated_at":"2023-06-07T09:07:52.000Z","dependencies_parsed_at":"2022-08-20T20:50:25.195Z","dependency_job_id":null,"html_url":"https://github.com/DreamingInBinary/GenericDatasource","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamingInBinary%2FGenericDatasource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamingInBinary%2FGenericDatasource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamingInBinary%2FGenericDatasource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamingInBinary%2FGenericDatasource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DreamingInBinary","download_url":"https://codeload.github.com/DreamingInBinary/GenericDatasource/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228182926,"owners_count":17881594,"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":[],"created_at":"2024-12-04T19:45:00.207Z","updated_at":"2024-12-04T19:45:00.807Z","avatar_url":"https://github.com/DreamingInBinary.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GenericDatasrouce](/pablo.png?raw=true \"GenericDatasource\")\n\n# GenericDatasource\nA Swift implementation of a generic datasource that you can use for table views.\n\n####Snag it from CocoaPods\n    pod 'GenericDatasource', ~\u003e '0.1.0'\n    \n###What is it for?\nThis simple class has only one job, to move your datasource logic outside of your controller. That's it :-). There are no tricks or anything special about it, other than it helps promote skinny view controllers.\n\n###How do I use it?\nSimply set up your GenericDatasource class with the information it needs in its initializer.\n\n    genericDataSource = GenericTVDatasource(data: data, cellID: \"Cell\") { cell, item in\n       //Do any cell configuration here\n       cell.textLabel?.text = item as? String\n    }\n\nWhenever your table view is initialized, just set its datasource to your `GenericDatasouce` instance:\n\n    aTableview.dataSource = genericDataSource\n\nAnd profit!\n\n###What's coming?\n  - Support for collection views.\n  - Ability to specify sections.\n\n###Can I tweet at you?\nPlease do, [@jordanmorgan10](https://twitter.com/jordanmorgan10). As the mantra goes - pull requests welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreaminginbinary%2Fgenericdatasource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreaminginbinary%2Fgenericdatasource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreaminginbinary%2Fgenericdatasource/lists"}