{"id":25195975,"url":"https://github.com/simplisticated/circleplayer","last_synced_at":"2026-05-02T03:32:06.657Z","repository":{"id":56905936,"uuid":"121026653","full_name":"simplisticated/CirclePlayer","owner":"simplisticated","description":"Simplifies UIImageView animations","archived":false,"fork":false,"pushed_at":"2018-02-20T08:04:05.000Z","size":783,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-15T09:22:08.388Z","etag":null,"topics":["animation","swift","uiimage","uiimageview","xcode"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/simplisticated.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":"2018-02-10T15:21:03.000Z","updated_at":"2021-12-23T11:07:55.000Z","dependencies_parsed_at":"2022-08-21T03:20:44.813Z","dependency_job_id":null,"html_url":"https://github.com/simplisticated/CirclePlayer","commit_stats":null,"previous_names":["igormatyushkin014/circle"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FCirclePlayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FCirclePlayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FCirclePlayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FCirclePlayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplisticated","download_url":"https://codeload.github.com/simplisticated/CirclePlayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208022,"owners_count":20901568,"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":["animation","swift","uiimage","uiimageview","xcode"],"created_at":"2025-02-10T01:39:16.531Z","updated_at":"2026-05-02T03:32:06.620Z","avatar_url":"https://github.com/simplisticated.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\" \u003e\n\t\u003cimg src=\"/Images/logo_2048_2048.png\" alt=\"Circle\" title=\"Circle\" width=\"300px\" height=\"300px\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://swift.org\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://cocoapods.org\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/cocoapods/v/CirclePlayer.svg\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://cocoapods.org\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/cocoapods/dt/CirclePlayer.svg\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://tldrlegal.com/license/mit-license\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=flat\"\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n# Circle\n\nSimplifies `UIImageView` animations via set of classes and extensions.\n\n## How To Get Started\n\n- Copy content of `Source` folder to your project.\n\nor\n\n- Use `CirclePlayer` cocoapod\n\n## Requirements\n\n* iOS 9 and later\n* Xcode 9 and later\n* Swift 4\n\n## Usage\n\nLet's assume, you have set of images in your Xcode project and you'd like to use them for playing animation within `UIImageView` instance. How this could be done with normal `UIKit` approach:\n\n```swift\nimageView.animationImages = [\n    UIImage(named: \"image_1\")!,\n    UIImage(named: \"image_2\")!,\n    UIImage(named: \"image_3\")!,\n    UIImage(named: \"image_4\")!,\n    UIImage(named: \"image_5\")!,\n    UIImage(named: \"image_6\")!,\n    UIImage(named: \"image_7\")!,\n    UIImage(named: \"image_8\")!,\n    // etc.\n]\n\nimageView.animationDuration = 1\nimageView.animatedImageView.animationRepeatCount = 1000\nimageView.animatedImageView.startAnimating()\n```\n\nWith `Circle` library you can implement the same behavior by using these lines:\n\n```swift\nimageView.crl\n    .prefix(\"image_\")\n    .from(1)\n    .to(8)\n    .duration(1)\n    .repeatCount(1000)\n    .start()\n```\n\nIf images are stored in another bundle, simply mention it by using `bundle` method:\n\n```swift\nimageView.crl\n    .bundle(Bundle(identifier: \"com.test.SomeBundle\"))\n    .prefix(\"image_\")\n    .from(1)\n    .to(180)\n    .duration(3)\n    .repeatCount(1000)\n    .start()\n```\n\nAll methods support call chains, so you can save reference to `AnimationManager` object and use it to stop animation later:\n\n```swift\nlet animationManager = imageView.crl\n    .prefix(\"image_\")\n    .from(1)\n    .to(240)\n    .duration(4)\n    .repeatCount(1000)\n    .start()\n\nanimationManager.stop()\n```\n\n## License\n\n`Circle` is available under the MIT license. See the [LICENSE](./LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplisticated%2Fcircleplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplisticated%2Fcircleplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplisticated%2Fcircleplayer/lists"}