{"id":18270383,"url":"https://github.com/conradev/CKShapeView","last_synced_at":"2025-04-05T01:30:34.375Z","repository":{"id":10140236,"uuid":"12214818","full_name":"conradev/CKShapeView","owner":"conradev","description":"UIView subclass backed by CAShapeLayer","archived":false,"fork":false,"pushed_at":"2018-10-06T17:35:07.000Z","size":28,"stargazers_count":284,"open_issues_count":2,"forks_count":12,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-29T13:48:38.787Z","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/conradev.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":"2013-08-19T11:24:07.000Z","updated_at":"2024-06-12T08:43:29.000Z","dependencies_parsed_at":"2022-08-31T03:11:32.683Z","dependency_job_id":null,"html_url":"https://github.com/conradev/CKShapeView","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conradev%2FCKShapeView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conradev%2FCKShapeView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conradev%2FCKShapeView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conradev%2FCKShapeView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/conradev","download_url":"https://codeload.github.com/conradev/CKShapeView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276022,"owners_count":20912285,"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-05T11:38:33.787Z","updated_at":"2025-04-05T01:30:34.060Z","avatar_url":"https://github.com/conradev.png","language":"Objective-C","readme":"# CKShapeView\n\nCKShapeView is a `UIView` subclass that is backed by a `CAShapeLayer`.\n\nIn other words, it is a view that is capable of rendering an arbitrary `CGPath`.\n\nIt is completely configurable **and animatable**, so you can have custom drawn views without needing to subclass.\n\n`CKShapeView` has all of the properties of `CAShapeLayer`, with the addition of a `hitTestUsingPath` property that allows you to hit test using the path instead of the view's bounds.\n\n## Example Usage\n\n``` objc\nCKShapeView *pieView = [[CKShapeView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];\nCGFloat width = CGRectGetWidth(pieView.bounds);\npieView.path = [UIBezierPath bezierPathWithOvalInRect:CGRectInset(pieView.bounds, width/4, width/4)];\npieView.lineWidth = width/2;\npieView.fillColor = nil;\npieView.strokeColor = [UIColor blackColor];\n[self.view addSubview:pieView];\n\nUIViewAnimationOptions options = UIViewAnimationOptionAutoreverse | UIViewAnimationOptionRepeat;\n[UIView animateWithDuration:1.0f delay:0.0f options:options animations:^{\n    pieView.strokeEnd = 0.0f;\n} completion:nil];\n```\n\n![Example](https://raw.github.com/conradev/CKShapeView/screenshots/Example.gif)\n\n## License\n\nCKShapeView is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconradev%2FCKShapeView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconradev%2FCKShapeView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconradev%2FCKShapeView/lists"}