{"id":13485383,"url":"https://github.com/SimformSolutionsPvtLtd/SSPlaceHolderTableView","last_synced_at":"2025-03-27T19:31:05.544Z","repository":{"id":49752530,"uuid":"166764571","full_name":"SimformSolutionsPvtLtd/SSPlaceHolderTableView","owner":"SimformSolutionsPvtLtd","description":"SSPlaceholderTableView is Placeholder Library for different different state wise placeHolder for UITableView/UICollectionView. Check https://www.cocoacontrols.com/controls/ssplaceholdertableview","archived":false,"fork":false,"pushed_at":"2022-09-23T13:11:25.000Z","size":307,"stargazers_count":51,"open_issues_count":2,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-22T05:02:32.248Z","etag":null,"topics":["placeholder","ssplaceholder","swift4","swift5","tableview","uicollectionview"],"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/SimformSolutionsPvtLtd.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":"2019-01-21T07:04:10.000Z","updated_at":"2024-09-06T11:34:00.000Z","dependencies_parsed_at":"2022-09-06T07:52:15.101Z","dependency_job_id":null,"html_url":"https://github.com/SimformSolutionsPvtLtd/SSPlaceHolderTableView","commit_stats":null,"previous_names":["simformsolutions/ssplaceholdertableview"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSPlaceHolderTableView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSPlaceHolderTableView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSPlaceHolderTableView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSPlaceHolderTableView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimformSolutionsPvtLtd","download_url":"https://codeload.github.com/SimformSolutionsPvtLtd/SSPlaceHolderTableView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245910751,"owners_count":20692497,"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":["placeholder","ssplaceholder","swift4","swift5","tableview","uicollectionview"],"created_at":"2024-07-31T18:00:21.225Z","updated_at":"2025-03-27T19:31:05.202Z","avatar_url":"https://github.com/SimformSolutionsPvtLtd.png","language":"Swift","readme":"# SSPlaceHolderTableView\n\n\u003e This is simple, customized and easy state wise PlaceHolder for TableView and CollectionView.\n\n[![Version](https://img.shields.io/cocoapods/v/SSPlaceHolderTableView.svg?style=flat)](https://cocoapods.org/pods/SSPlaceHolderTableView)\n[![License][license-image]][license-url]\n[![Platform](https://img.shields.io/cocoapods/p/SSPlaceHolderTableView.svg?style=flat)](https://cocoapods.org/pods/SSPlaceHolderTableView)\n[![Swift Version][swift-image]][swift-url]\n[![PRs Welcome][PR-image]][PR-url]\n\n![Example](https://media.giphy.com/media/TL6hrx7L4YUXh8HnnX/giphy.gif)\n## Requirements\n\n- iOS 11.0+\n- Xcode 10.0+\n\n## Installation\nSSPlaceHolderTableView doesn't contain any external dependencies.\n\nIt is available through [CocoaPods](https://cocoapods.org/pods/SSPlaceHolderTableView). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SSPlaceHolderTableView'\n```\n\n## Usage example\n\n### Set UITableView to TableView\n![alt text](https://raw.githubusercontent.com/simformsolutions/SSPlaceHolderTableView/master/SSPlaceHolderTableView/ScreenShot/TableView.png)\n\n\n### Set UICollectionView to CollectionView\n![alt text](https://raw.githubusercontent.com/simformsolutions/SSPlaceHolderTableView/master/SSPlaceHolderTableView/ScreenShot/CollectionView.png)\n\n### Set TableView State to Use Placeholder TableView\n\n## Usage example\n\n**NetworkUnReachableBlock**\n- If you want to use inbuild Reachability for API call, You can simply add your API call inside this networkUnReachableBlock.\n- Put this code in *viewDidLoad*\n\n\n        tblView.networkUnReachableBlock = {\n        // put your API Call here.\n        }\n        \n**Loading State**   \n- You can put this state before your API call or data collecting method.\n- **Customisation**: In loadingImg param, You can pass your custom image and in loadingLabelTitle you can pass your custom attributed string.\n\n\n        tblView.setState(.loading(loadingImg: nil, loadingLabelTitle: nil))\n\n**Data Available State**   \n- When your data successfully available simply put this line in your code.\n\n\n        tblView.setState(.dataAvailable(viewController: self))\n\n**Data UnAvailable State**   \n- When your data not available simply put this line in your code.\n- **Customisation**: In noDataImg param, You can pass your custom image for no data and in noDataLabelTitle you can pass your custom attributed string.\n\n\n        tblView.setState(.noDataAvailable(noDataImg: nil, noDataLabelTitle: nil))\n**No Internet available State**       \n- When Internet is not available put this line.\n- **Customisation**: In noInternetImg param You can pass your custom image for no internet state and in noInternetLabelTitle you can pass your custom attributed string.\n\n\n        tblView.setState(.checkInternetAvaibility(noInternetImg: nil, noInternetLabelTitle: nil))\n## NOTE\n- If you want to use this in UICollectionView Simply replace your collectionView object with tblView in above codes.\n\n## Contribute\n\nWe would love you for the contribution to SSPlaceHolderTableView, check the LICENSE file for more info.\n\n## License\n\nSSPlaceHolderTableView is Distributed under the MIT license. See ``LICENSE`` for more information..\n\n\n[PR-image]:https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[PR-url]:http://makeapullrequest.com\n[swift-image]:https://img.shields.io/badge/swift-4.2-orange.svg\n[swift-url]: https://swift.org/\n[license-image]: https://img.shields.io/badge/License-MIT-blue.svg\n[license-url]: LICENSE\n","funding_links":[],"categories":["iOS Guides","iOS"],"sub_categories":["Swift"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSPlaceHolderTableView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSimformSolutionsPvtLtd%2FSSPlaceHolderTableView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSPlaceHolderTableView/lists"}