{"id":15037189,"url":"https://github.com/adriantabirta/statetableview","last_synced_at":"2026-03-16T19:35:58.352Z","repository":{"id":114362851,"uuid":"122357699","full_name":"adriantabirta/StateTableView","owner":"adriantabirta","description":"Tableview states for loading, refreshing and placeholders.","archived":false,"fork":false,"pushed_at":"2018-05-04T09:54:38.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T08:22:18.519Z","etag":null,"topics":["ios","swift3","swift4","tableview","tableview-collectionview-loading"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adriantabirta.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-21T15:57:29.000Z","updated_at":"2018-05-04T09:54:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"8df71c7b-0bc6-44cb-9249-a6187ef5864b","html_url":"https://github.com/adriantabirta/StateTableView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriantabirta%2FStateTableView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriantabirta%2FStateTableView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriantabirta%2FStateTableView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriantabirta%2FStateTableView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adriantabirta","download_url":"https://codeload.github.com/adriantabirta/StateTableView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243402629,"owners_count":20285263,"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":["ios","swift3","swift4","tableview","tableview-collectionview-loading"],"created_at":"2024-09-24T20:33:43.496Z","updated_at":"2025-12-25T19:41:53.425Z","avatar_url":"https://github.com/adriantabirta.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StateTableView\n\n### TableView exemple for states.\n\n###### Tableview extenions for statle like:\n- [x] initial\n- [x] initialRefreshable\n- [x] empty\n- [x] loading\n- [x] noConnection\n\n###### This it is an exemple how to make tableview placeholders. Customize views like you want and use it.\n\n###### Gif\n\n![Alt Text](https://media.giphy.com/media/ulKNZPl7O5bHj2Gm9Y/giphy.gif)\n\n## Getting Started\n\nIs easy to implement, just drag and drom into your project folders: **Views** and **Extensions**.\nDownload repository and run on the simulator. Application simulate network requests with different responses.\nRefresh for simulate requests.\n\nHere is an exemple code how to use it: \n```swift\nclass ViewController: UIViewController {\n  \n  \t// ...\n\n\toverride func viewDidLoad() {\n\t\tsuper.viewDidLoad()\n\t\t// this is important to setup\n\t\ttableview?.datasourceReference = self\n\t\t\n\t\t// configure initial tableview state\n\t\ttableview?.configure(state: .loading(LoadingView(frame: self.tableview?.frame ?? CGRect.zero)))\n\t}\n  \n  \tfunc loadData() {\n  \n     \t\t // create an loading view and set it.\n     \t \tlet loagindView =  LoadingView(frame: self.tableview?.frame)\n  \t\ttableview?.configure(state: .loading(loagindView))\n      \n     \t \t// ... you loading data code here\n      \n      \t\t// on empty data, use your placehoder \n      \t\tlet nodataView = NoDataView()\n      \t\tself.tableview?.configure(state: .empty(nodataView))\n\n\n\t\t// on lost connection\n      \t\tlet noConnectionView = NoConnectionView(frame: self.tableview?.frame ?? CGRect.zero).onTryAgain(self.refreshAction)\n      \t\tself.tableview?.configure(state: .noConnection(noConnectionView))\n      \n  }\n  \n  func refreshAction() {\n    // ...\n  }\n \n  \n  \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriantabirta%2Fstatetableview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadriantabirta%2Fstatetableview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriantabirta%2Fstatetableview/lists"}