{"id":2178,"url":"https://github.com/mariohahn/StatusProvider","last_synced_at":"2025-08-02T23:32:09.492Z","repository":{"id":43040144,"uuid":"66556494","full_name":"mariohahn/StatusProvider","owner":"mariohahn","description":"Protocol to handle initial Loadings, Empty Views and Error Handling in a ViewController \u0026 views","archived":false,"fork":false,"pushed_at":"2018-09-14T17:01:25.000Z","size":371,"stargazers_count":879,"open_issues_count":5,"forks_count":47,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-11-29T13:00:00.856Z","etag":null,"topics":["empty","error-handling","loading","protocol","viewcontroller"],"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/mariohahn.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":"2016-08-25T12:35:39.000Z","updated_at":"2024-09-12T14:02:42.000Z","dependencies_parsed_at":"2022-09-09T17:00:36.955Z","dependency_job_id":null,"html_url":"https://github.com/mariohahn/StatusProvider","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariohahn%2FStatusProvider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariohahn%2FStatusProvider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariohahn%2FStatusProvider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariohahn%2FStatusProvider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariohahn","download_url":"https://codeload.github.com/mariohahn/StatusProvider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228078666,"owners_count":17865958,"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":["empty","error-handling","loading","protocol","viewcontroller"],"created_at":"2024-01-05T20:16:06.724Z","updated_at":"2024-12-06T17:30:47.968Z","avatar_url":"https://github.com/mariohahn.png","language":"Swift","readme":"[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n# StatusProvider\n\n![Screenshot](https://github.com/mariohahn/StatusProvider/blob/master/Github%20Screenshots/StatusProvider.png?raw=true)\n\nProtocol to handle initial Loadings, Empty Views and Error Handling in a ViewController \u0026amp; views\n\n## CocoaPods Podfile\n\n```ruby\npod 'StatusProvider'\n```\n\n## Functions\n\n* Loading\n* EmptyView\n* Error Handling\n\n## How to use?\n```swift\n\nclass ErrorViewController: UIViewController, StatusController {\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        title = \"Error\"\n\n        let status = Status(title: \"Error\", description: \"Oh... fu**\", actionTitle: \"Retry 🚀\") {\n\n        }\n        show(status: status)        \n    }\n}\n\nclass ActivityViewController: UIViewController, StatusController {\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        title = \"Loading\"\n\n        let status = Status(isLoading: true, description: \"Lädt…\")\n\n        show(status: status)\n    }\n}\n\nclass EmptyViewController: UIViewController, StatusController {\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        title = \"Empty\"\n\n        let status = Status(title: \"no Data\", description: \"No data available.💣\", actionTitle: \"Create ⭐️\", image: UIImage(named: \"placeholder_instagram\")) {\n            self.hideStatus()\n        }    \n\n        show(status: status)        \n    }\n}\n\n```\n","funding_links":[],"categories":["Swift","UI"],"sub_categories":["Other free courses","Font","Other Testing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariohahn%2FStatusProvider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariohahn%2FStatusProvider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariohahn%2FStatusProvider/lists"}