{"id":13700383,"url":"https://github.com/mayqiyue/OCSkeleton","last_synced_at":"2025-05-04T18:35:09.078Z","repository":{"id":62449264,"uuid":"123878262","full_name":"mayqiyue/OCSkeleton","owner":"mayqiyue","description":"[OCSkeleton] -  Make your loading view a little difference. ","archived":false,"fork":false,"pushed_at":"2020-07-03T04:33:11.000Z","size":421,"stargazers_count":186,"open_issues_count":0,"forks_count":51,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-25T18:12:31.400Z","etag":null,"topics":["gradient","loader","loading-animations","obje","objective-c","placeholder","skeleton"],"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/mayqiyue.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-03-05T07:00:25.000Z","updated_at":"2024-06-17T13:18:13.000Z","dependencies_parsed_at":"2022-11-01T23:17:54.464Z","dependency_job_id":null,"html_url":"https://github.com/mayqiyue/OCSkeleton","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayqiyue%2FOCSkeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayqiyue%2FOCSkeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayqiyue%2FOCSkeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayqiyue%2FOCSkeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mayqiyue","download_url":"https://codeload.github.com/mayqiyue/OCSkeleton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252383200,"owners_count":21739288,"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":["gradient","loader","loading-animations","obje","objective-c","placeholder","skeleton"],"created_at":"2024-08-02T20:00:55.057Z","updated_at":"2025-05-04T18:35:04.048Z","avatar_url":"https://github.com/mayqiyue.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"### The library is inspired by [Skeleton](https://github.com/gonzalonunez/Skeleton)\n\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"logo.png\" width=\"300\" max-width=\"50%\" alt=\"Skeleton\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"http://cocoapods.org/pods/OCSkeleton\"\u003e\n        \u003cimg src=\"https://img.shields.io/cocoapods/p/OCSkeleton.svg?style=flat\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://cocoapods.org/pods/OCSkeleton\"\u003e\n        \u003cimg src=\"https://img.shields.io/cocoapods/l/OCSkeleton.svg?style=flat\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://cocoapods.org/pods/OCSkeleton\"\u003e\n        \u003cimg src=\"https://img.shields.io/cocoapods/v/OCSkeleton.svg?style=flat\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n![](./skeleton-logo-animation.gif)\n\n## 👩‍💻 Usage\n\n### import the OCSkeleton:  \\#import \\\u003cOCSkeleton.h\\\u003e\n\n#### You can use the *OCGradientLayer* directly:\n\n```ObjC\n@interface OCGradientLayer : CAGradientLayer\n\n- (void)slideToDir:(OCDirection)direction animations:(void (^)(CAAnimationGroup *))group;\n\n- (void)stopSliding;\n\n@end\n\n```\n\n#### Or you can use the *OCGradientContainerView* to intergate with autolayout:\n\n1. Make your view confrom to *OCGradientsOwner* protocol\n2. Use the API    \n\n```ObjC\n@interface UIView (OCGradientsOwner)\n\n- (void)slideToDir:(OCDirection)direction animations:(void (^)(CAAnimationGroup *))group;\n\n- (void)stopSliding;\n\n@end\n\n\n```\n\nCheck out the example for more.\n\n\n## 📚 Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## 🛠 Installation\n\nOCSkeleton is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'OCSkeleton'\n```\n\n## Author\n\nmayqiyue, xu20121013@gmail.com\n\n## License\n\nOCSkeleton is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayqiyue%2FOCSkeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayqiyue%2FOCSkeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayqiyue%2FOCSkeleton/lists"}