{"id":2282,"url":"https://github.com/ppth0608/BPBlockActivityIndicator","last_synced_at":"2025-08-02T23:32:46.429Z","repository":{"id":56903121,"uuid":"96686998","full_name":"ppth0608/BPBlockActivityIndicator","owner":"ppth0608","description":"A simple and awesome loading Activity Indicator(with block moving animation) for your iOS app.","archived":false,"fork":false,"pushed_at":"2017-08-14T05:18:26.000Z","size":29,"stargazers_count":44,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-24T14:46:29.724Z","etag":null,"topics":["activityindicator","animation","loadingview","storyboard","ui"],"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/ppth0608.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":"2017-07-09T13:45:41.000Z","updated_at":"2024-04-20T01:37:51.000Z","dependencies_parsed_at":"2022-08-21T02:50:09.021Z","dependency_job_id":null,"html_url":"https://github.com/ppth0608/BPBlockActivityIndicator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppth0608%2FBPBlockActivityIndicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppth0608%2FBPBlockActivityIndicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppth0608%2FBPBlockActivityIndicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppth0608%2FBPBlockActivityIndicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppth0608","download_url":"https://codeload.github.com/ppth0608/BPBlockActivityIndicator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503167,"owners_count":17930527,"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":["activityindicator","animation","loadingview","storyboard","ui"],"created_at":"2024-01-05T20:16:09.751Z","updated_at":"2024-12-06T17:30:57.057Z","avatar_url":"https://github.com/ppth0608.png","language":"Swift","readme":"# BPBlockActivityIndicator\n\n**BPBlockActivityIndicator** is a clean and easy-to-use Activity Indicator meant to display the progress of an ongoing task on iOS. \u003c/br\u003e\n\n## Demo\n\n\u003cimg src=\"https://user-images.githubusercontent.com/9531750/28249005-0ff9b0b4-6a89-11e7-906a-d00e2ffdf7fa.gif\" width=\"320\" height=\"590\" /\u003e\n\n## Requirements\n- Deployment Target - `iOS 8.0`\n- Swift Version - `Swift 3.2`\n\n## Installation\n\n### CocoaPods\nBPBlockActivityIndicator is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"BPBlockActivityIndicator\"\n```\n\n### Carthage\nSimply add the following line to your Cartfile:\n\n``` ruby\ngithub \"ppth0608/BPBlockActivityIndicator\"\n```\n\n### Manual\nCopy the folder `Source/` to your project\n\n## Usage\nUsing BPBlockActivityIndicator isn't difficult at all. There are two actual ways of implementing it in your project:\n- Storyboard setup\n- Manual setup\n\n### Storyboard Setup\n\nFirst, add a UIView to your Storyboard and set the custom class (You can set custom classes in **Identity Inspector**) as it shown in the picture below:\n\n\u003cimg width=\"813\" alt=\"2017-07-17 12 51 06\" src=\"https://user-images.githubusercontent.com/9531750/28249057-172a6648-6a8a-11e7-9f7d-4ec226279fe0.png\" width=\"1000\" height=\"650\" /\u003e\n\nThen, add the corresponding Outlet in to your code:\n\n```Swift\n@IBOutlet weak var blockIndicator: BPBlockActivityIndicator!\n```\n\n### Manual setup\n\nIf you would like to setup **BPBlockActivityIndicator** manually, you have to do the following:\n\n```Swift\nvar blockIndicatorindicator: BPBlockActivityIndicator!\n\noverride func viewDidLoad() {\n    super.viewDidLoad()\n\n    // initialize BPBlockActivityIndicator programmatically        \n    blockIndicatorindicator = BPBlockActivityIndicator(frame: CGRect(x: 0, y: 0, width: 40, height: 40))\n    view.addSubview(blockIndicatorindicator)\n}\n```\n\n### Animate \u0026 Stop\n\nYou can easily animate and stop animations like so:\n\n```Swift\n@IBAction func startAnimate(_ sender: Any) {\n    blockIndicator.animate()\n}\n\n@IBAction func stopAnimate(_ sender: Any) {\n    blockIndicator.stop()\n}\n```\n\n### Customize\n\nIf you want to setup animation speed or the color of blocks (if using a storyboard) you can set the properties in the **Identity Inspector** as it shown in the picture below:\n\n\u003cimg width=\"359\" alt=\"2017-07-17 12 51 51\" src=\"https://user-images.githubusercontent.com/9531750/28249065-2bb96d48-6a8a-11e7-9cb0-c3af02447c5f.png\"\u003e\n\nOr (if using code), you can call methods as shown in the code below:\n\n```Swift\nblockIndicatorindicator = BPBlockActivityIndicator(frame: CGRect(x: 30, y: 30, width: 40, height: 40))\n            .movementSpeed(0.2)\n            .blockColor(.cyan)\nview.addSubview(blockIndicatorindicator)\n```\n\nDefault settings are shown below:\n\n- Animation Speed : 0.6\n- Color of blocks : Blue\n\n## Author\n\nBen.Park, ppth0608@naver.com\n\n## Designed By\n\nSuna.Shin, tjsdk2309@gmail.com\n\n## Contribute\n\nAlways welcome :)\nPlease submit pull request to **BPBlockActivityIndicator**.\n\n## License\n\nBPBlockActivityIndicator is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":["UI"],"sub_categories":["Activity Indicator","Other free courses"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppth0608%2FBPBlockActivityIndicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppth0608%2FBPBlockActivityIndicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppth0608%2FBPBlockActivityIndicator/lists"}