{"id":13714719,"url":"https://github.com/SergioChan/SCCatWaitingHUD","last_synced_at":"2025-05-07T03:30:55.397Z","repository":{"id":62453356,"uuid":"46110301","full_name":"SergioChan/SCCatWaitingHUD","owner":"SergioChan","description":":cat: This is a cute and simple loading HUD on iOS :-P ","archived":false,"fork":false,"pushed_at":"2016-10-12T06:52:12.000Z","size":14603,"stargazers_count":387,"open_issues_count":2,"forks_count":58,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-28T21:58:35.893Z","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/SergioChan.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":"2015-11-13T08:42:13.000Z","updated_at":"2024-11-09T14:16:51.000Z","dependencies_parsed_at":"2022-11-01T23:46:26.908Z","dependency_job_id":null,"html_url":"https://github.com/SergioChan/SCCatWaitingHUD","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioChan%2FSCCatWaitingHUD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioChan%2FSCCatWaitingHUD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioChan%2FSCCatWaitingHUD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioChan%2FSCCatWaitingHUD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SergioChan","download_url":"https://codeload.github.com/SergioChan/SCCatWaitingHUD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252806374,"owners_count":21807193,"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-08-03T00:00:39.804Z","updated_at":"2025-05-07T03:30:51.068Z","avatar_url":"https://github.com/SergioChan.png","language":"Objective-C","funding_links":[],"categories":["Project List"],"sub_categories":["CatWaitingHUD"],"readme":"# SCCatWaitingHUD\n\nThis is a cute and simple loading HUD :-P Enjoy!  \n这是一个可爱清新简单的加载HUD控件 :-P\n\n[![CI Status](http://img.shields.io/travis/SergioChan/SCCatWaitingHUD.svg?style=flat)](https://travis-ci.org/SergioChan/SCCatWaitingHUD)\n[![Version](https://img.shields.io/cocoapods/v/SCCatWaitingHUD.svg?style=flat)](http://cocoapods.org/pods/SCCatWaitingHUD)\n[![License](https://img.shields.io/cocoapods/l/SCCatWaitingHUD.svg?style=flat)](http://cocoapods.org/pods/SCCatWaitingHUD)\n[![Platform](https://img.shields.io/cocoapods/p/SCCatWaitingHUD.svg?style=flat)](http://cocoapods.org/pods/SCCatWaitingHUD)\n\n## Preview 预览\n\n![image](https://raw.githubusercontent.com/SergioChan/SCCatWaitingHUD/master/Preview/preview.png)\n\n![image](https://raw.githubusercontent.com/SergioChan/SCCatWaitingHUD/master/Preview/preview.gif)\n\n## Usage 用法\n\n你可以在[这里](http://anius.io/2015/11/25/SCCatWaitingHUD/)看到详细的实现原理。\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.  \n想要运行示例工程，将这个仓库clone到本地，在`Example`目录下运行`pod install`。\n\nSimply use as below :  \n用法很简单：\n\n```Objective-C\nif(![SCCatWaitingHUD sharedInstance].isAnimating)\n{\n    [[SCCatWaitingHUD sharedInstance] animate];\n}\nelse\n{\n    [[SCCatWaitingHUD sharedInstance] stop];\n}\n```\n\nHere I provided you several complex ways to call the `animate` method.  \n有些加载交互是需要block用户当前操作的，因此在这里我提供了两种更复杂一些的方式来调用`animate`方法。\n\n```Objective-C\n/**\n *  动画的时候是否允许和原始的View进行交互\n *  Whether you can interact with the original view while animating\n *\n *  @param enabled YES代表能响应原生View事件，NO代表block当前所有的手势操作\n */\n- (void)animateWithInteractionEnabled:(BOOL)enabled;\n\n/**\n *  You can attach your HUD title to the view using this animation method.\n *\n *  @param enabled YES代表能响应原生View事件，NO代表block当前所有的手势操作\n *  @param title   HUD title\n */\n- (void)animateWithInteractionEnabled:(BOOL)enabled title:(NSString *)title;\n```\n\nMoreover, I provided a new method to call `animate` in version 0.1.6 that can give you ablity to customize the duration for each loop.  \n另外我在0.1.6版本提供了一个更新的调用 `animate` 方法的接口，可以让你自定义每转一圈的时长，从而修改旋转的速度，默认值是4秒一圈，在这个速度上看老鼠跑的不会异常的快，当然提供给你这个方法是让你可以让它跑得更快。\n\n```Objective-C\n/**\n*  You can also customize duration for each loop (also can be represented as speed) using this animation method. Default duration is 4.0 seconds each loop.\n*\n*  @param enabled YES代表能响应原生View事件，NO代表block当前所有的手势操作\n*  @param title   HUD title\n*  @param duration time for each loop\n*/\n- (void)animateWithInteractionEnabled:(BOOL)enabled title:(NSString *)title duration:(CGFloat)duration;\n```\n## BackLog 更新日志\n* v0.1.0 Basic Version\n* v0.1.1 Add Landscape Orientation Support\n* v0.1.4 Add eye cover and Loading contentLabel animation\n* v0.1.5 Finish perfect timing function for eye cover movement and polish some of the codes\n* v0.1.6 Add a new animate method that can customize duration for each loop\n\n--\n\n* v0.1.0 基本版本\n* v0.1.1 支持横屏\n* v0.1.4 添加眼皮运动和下方Loading字样的Label\n* v0.1.5 优化代码结构，精确调整了眼皮和眼珠的运动时间曲线\n* v0.1.6 添加一个新的animate方法入口\n\n## Requirements 版本需求\niOS 8.0 Above\n\n## Installation 安装\n\nSCCatWaitingHUD is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SCCatWaitingHUD', '~\u003e 0.1.6'\n```\n\n## License\n\nSCCatWaitingHUD 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%2FSergioChan%2FSCCatWaitingHUD","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSergioChan%2FSCCatWaitingHUD","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSergioChan%2FSCCatWaitingHUD/lists"}