{"id":18268394,"url":"https://github.com/bionelabs/uiwaiting","last_synced_at":"2025-10-06T22:10:10.702Z","repository":{"id":56925184,"uuid":"264491747","full_name":"bionelabs/UIWaiting","owner":"bionelabs","description":"UIWaiting is a extend UIViewController give 2 function startWating and stopWaiting to make ViewWaiting at top current ViewController","archived":false,"fork":false,"pushed_at":"2020-05-17T03:15:30.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T01:34:52.763Z","etag":null,"topics":["swift","uikit","waiting","xcode"],"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/bionelabs.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":"2020-05-16T17:39:28.000Z","updated_at":"2020-05-31T05:51:16.000Z","dependencies_parsed_at":"2022-08-20T22:50:29.318Z","dependency_job_id":null,"html_url":"https://github.com/bionelabs/UIWaiting","commit_stats":null,"previous_names":["bionelabs/uiwaiting","onebuffer/uiwaiting"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionelabs%2FUIWaiting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionelabs%2FUIWaiting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionelabs%2FUIWaiting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionelabs%2FUIWaiting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bionelabs","download_url":"https://codeload.github.com/bionelabs/UIWaiting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247968240,"owners_count":21025797,"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":["swift","uikit","waiting","xcode"],"created_at":"2024-11-05T11:31:18.744Z","updated_at":"2025-10-06T22:10:05.611Z","avatar_url":"https://github.com/bionelabs.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UIWaiting\n- UIWaiting is a extend UIViewController give 2 function startWating and stopWaiting to make ViewWaiting at top current ViewController\n- Easy to add to your project and remove it. \n\n## Demo\n\u003cimg src=\"https://github.com/onebuffer/UIWaiting/blob/master/Resources/Demo.png\" width=\"30%\"\u003e\n\n## Installation\n\n### CocoaPods\nCocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate UIWaiting into your Xcode project using CocoaPods, specify it in your Podfile:\n\n```swift\npod 'UIWaiting'\n```\n\n### How to use\n\n```swift\n\nimport UIKit\nimport UIWaiting\n\nextension ViewController: UIWaitingViewExtend {\n    \n    // MARK: Custom UI waiting view\n    func setWaitingTitleFont() -\u003e UIFont {\n        return .boldSystemFont(ofSize: 18)\n    }\n    \n    func setWaitingIndicatorBackgroundColor() -\u003e UIColor {\n        return UIColor.white.withAlphaComponent(0.1)\n    }\n    \n    func setWaitingBackgroundColor() -\u003e UIColor {\n        return UIColor.black.withAlphaComponent(0.1)\n    }\n    \n    func setWaitingTitleColor() -\u003e UIColor {\n        return .black\n    }\n    \n}\n\nclass ViewController: UIViewController {\n    \n    let button: UIButton = {\n        let view: UIButton = UIButton()\n        view.frame = CGRect(x: 100, y: 100, width: 200, height: 50)\n        view.backgroundColor = .orange\n        view.setTitle(\"SHOW\", for: .normal)\n        return view\n    }()\n    \n    override func loadView() {\n        super.loadView()\n        self.view.backgroundColor = .white\n        self.view.addSubview(button)\n    }\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        button.addTarget(self, action: #selector(tap), for: .touchUpInside)\n        \n    }\n    \n    // Show Waiting\n    @objc func tap() {\n        self.startWaiting(\"PROCESSING\")\n        \n        // Hide Waiting\n        DispatchQueue.main.asyncAfter(deadline: .now() + 10) {\n            self.stopWaiting()\n        }\n    }\n}\n\n```\n\n## Contact\n- Email: caophuocthanh@gmail.com\n- Site: https://onebuffer.com\n- Linkedin: https://www.linkedin.com/in/caophuocthanh/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbionelabs%2Fuiwaiting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbionelabs%2Fuiwaiting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbionelabs%2Fuiwaiting/lists"}