{"id":19856968,"url":"https://github.com/johnvuko/jtborderdotanimation","last_synced_at":"2025-05-02T02:30:28.075Z","repository":{"id":23887307,"uuid":"27266599","full_name":"johnvuko/JTBorderDotAnimation","owner":"johnvuko","description":"A simple animation with dots turning around a UIView for iOS","archived":false,"fork":false,"pushed_at":"2015-05-30T16:36:20.000Z","size":213,"stargazers_count":56,"open_issues_count":0,"forks_count":10,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-06T21:02:19.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/johnvuko.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":"2014-11-28T12:42:26.000Z","updated_at":"2023-12-27T08:34:33.000Z","dependencies_parsed_at":"2022-08-22T06:31:26.209Z","dependency_job_id":null,"html_url":"https://github.com/johnvuko/JTBorderDotAnimation","commit_stats":null,"previous_names":["johnvuko/jtborderdotanimation"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTBorderDotAnimation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTBorderDotAnimation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTBorderDotAnimation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTBorderDotAnimation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnvuko","download_url":"https://codeload.github.com/johnvuko/JTBorderDotAnimation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251972408,"owners_count":21673599,"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":[],"created_at":"2024-11-12T14:17:05.609Z","updated_at":"2025-05-02T02:30:27.761Z","avatar_url":"https://github.com/johnvuko.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JTBorderDotAnimation\n\n[![CI Status](http://img.shields.io/travis/jonathantribouharet/JTBorderDotAnimation.svg)](https://travis-ci.org/jonathantribouharet/JTBorderDotAnimation)\n![Version](https://img.shields.io/cocoapods/v/JTBorderDotAnimation.svg)\n![License](https://img.shields.io/cocoapods/l/JTBorderDotAnimation.svg)\n![Platform](https://img.shields.io/cocoapods/p/JTBorderDotAnimation.svg)\n\nJTBorderDotAnimation is a simple animation for have dots turning around a UIView on iOS.\n\n## Installation\n\nWith [CocoaPods](http://cocoapods.org/), add this line to your Podfile.\n\n\tpod 'JTBorderDotAnimation', '~\u003e 1.0'\n\n## Screenshots\n\n![Example](./Screens/example.gif \"Example View\")\n\n## Usage\n\n### Basic usage\n\nJust import `JTBorderDotAnimation.h`.\n\n```objective-c\n#import \"JTBorderDotAnimation.h\"\n\n@interface ViewController : UIViewController\n\n@property (weak, nonatomic) IBOutlet UIView *animatedView;\n\n@property (strong, nonatomic) JTBorderDotAnimation *dotAnimation;\n\n@end\n```\n\nAssign the view you want to animate and start the animation.\n\n```objective-c\n- (void)viewDidLoad\n{\n    [super viewDidLoad];\n \n    self.dotAnimation = [JTBorderDotAnimation new];\n    self.dotAnimation.animatedView = self.animatedView;\n}\n\n- (void)viewDidAppear:(BOOL)animated\n{\n    [super viewDidAppear:animated];\n\n    [self.dotAnimation start];\n}\n```\n\n### Customization\n\nYou can easily customize the animation.\n\n- `numberPoints`\n- `duration`\n- `repeatCount`\n- `pointSize`\n- `pointColor`\n\nExample:\n\n```objective-c\n- (void)viewDidLoad\n{\n    [super viewDidLoad];\n \n    self.dotAnimation = [JTBorderDotAnimation new];\n    self.dotAnimation.animatedView = self.animatedView;\n\n    self.dotAnimation.numberPoints = 6;\n    self.dotAnimation.duration = 6.;\n    self.dotAnimation.repeatCount = 3;\n    self.dotAnimation.pointSize = 5.;\n    self.dotAnimation.pointColor = [UIColor orangeColor];\n}\n```\n\n### Notes\n\n`clipsToBounds` property of the animatedView is set to `NO` at the beginning of the animation.\n\nYou can also change the speed of the animation without stopping it with:\n\n```objective-c\n    CALayer *layer = self.animatedView.layer;\n    \n    layer.timeOffset = [layer convertTime:CACurrentMediaTime() fromLayer:nil];\n    layer.beginTime = CACurrentMediaTime();\n    layer.speed = 2.;\n```\n\n## Requirements\n\n- iOS 7 or higher\n- Automatic Reference Counting (ARC)\n\n## Known Issues\n\n- Animation stop when the application go in background, you have to restart it manually\n\n## Author\n\n- [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))\n\n## License\n\nJTBorderDotAnimation is released under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fjtborderdotanimation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnvuko%2Fjtborderdotanimation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fjtborderdotanimation/lists"}