{"id":17688988,"url":"https://github.com/isapozhnik/loadingviewcontroller","last_synced_at":"2025-03-30T21:43:58.608Z","repository":{"id":56919980,"uuid":"62221901","full_name":"iSapozhnik/LoadingViewController","owner":"iSapozhnik","description":"View controller which supports changing of it's content with predefined views: ContentView, LoadingView, ErrorView, NoDataView","archived":false,"fork":false,"pushed_at":"2017-04-14T12:45:04.000Z","size":887,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-07T22:18:26.986Z","etag":null,"topics":["contentview","loading","loadingview","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/iSapozhnik.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-06-29T11:50:57.000Z","updated_at":"2019-11-26T08:13:26.000Z","dependencies_parsed_at":"2022-08-20T21:50:19.871Z","dependency_job_id":null,"html_url":"https://github.com/iSapozhnik/LoadingViewController","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iSapozhnik%2FLoadingViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iSapozhnik%2FLoadingViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iSapozhnik%2FLoadingViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iSapozhnik%2FLoadingViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iSapozhnik","download_url":"https://codeload.github.com/iSapozhnik/LoadingViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246385410,"owners_count":20768668,"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":["contentview","loading","loadingview","viewcontroller"],"created_at":"2024-10-24T11:46:07.765Z","updated_at":"2025-03-30T21:43:58.588Z","avatar_url":"https://github.com/iSapozhnik.png","language":"Swift","readme":"# LoadingViewController\n\n[![Build Status](https://travis-ci.org/iSapozhnik/LoadingViewController.svg?style=flat)](https://travis-ci.org/iSapozhnik/LoadingViewController)\n[![Version](https://img.shields.io/cocoapods/v/LoadingViewController.svg?style=flat)](http://cocoapods.org/pods/LoadingViewController)\n[![License](https://img.shields.io/cocoapods/l/LoadingViewController.svg?style=flat)](http://cocoapods.org/pods/LoadingViewController)\n[![Platform](https://img.shields.io/cocoapods/p/LoadingViewController.svg?style=flat)](http://cocoapods.org/pods/LoadingViewController)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\nLoadingViewController is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"LoadingViewController\"\n```\n\nUITableViewController and UICollectionViewController are not supported yet. \n\n## How to use\n\nSubclass your controller from LoadingViewController. On the top of View of your controller put another UIView which will be content view. All your content should be on the top of Content view. Link *_contentView_* property with this newly created view.\n\n```swift\noverride func viewDidLoad() {\n\tsuper.viewDidLoad()\n\t\n\tsetVisibleScreen(.Loading)\n\tAPIService.fetchSomeData({ response in\n\t\t// Update UI\n\t\tself.setVisibleScreen(.Content)\n\t}) \n}\n```\n\n## TODO\n* add support of UITableViewController and UICollectionViewController\n* implement NoData view, Empty view\n* fix autolayout issues\n* add pull to refresh and load more features\n* code refactoring :)\n\n## Author\n\nSapozhnik Ivan, sapozhnik.ivan@gmail.com\n\n## License\n\nLoadingViewController is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisapozhnik%2Floadingviewcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisapozhnik%2Floadingviewcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisapozhnik%2Floadingviewcontroller/lists"}