{"id":22740089,"url":"https://github.com/iliuchang/lctoast","last_synced_at":"2025-10-29T14:14:48.073Z","repository":{"id":37769163,"uuid":"501134064","full_name":"iLiuChang/LCToast","owner":"iLiuChang","description":"Simple Objective-C toast notifications","archived":false,"fork":false,"pushed_at":"2022-06-27T04:12:20.000Z","size":294,"stargazers_count":164,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T04:07:12.386Z","etag":null,"topics":["ios","objective-c","progress","toast"],"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/iLiuChang.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":"2022-06-08T06:53:21.000Z","updated_at":"2024-12-01T05:50:56.000Z","dependencies_parsed_at":"2022-07-12T16:52:07.042Z","dependency_job_id":null,"html_url":"https://github.com/iLiuChang/LCToast","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/iLiuChang%2FLCToast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCToast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCToast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCToast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iLiuChang","download_url":"https://codeload.github.com/iLiuChang/LCToast/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830389,"owners_count":21168272,"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":["ios","objective-c","progress","toast"],"created_at":"2024-12-10T23:07:25.243Z","updated_at":"2025-10-29T14:14:47.985Z","avatar_url":"https://github.com/iLiuChang.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# LCToast\n\nAdd toast to UIView.\n\n## Requirements\n\n- **iOS 8.0+**\n\n## Features\n\nThe LCToast is a comparison of features with [Toast](https://github.com/scalessec/Toast) and [SVProgressHUD](https://github.com/SVProgressHUD/SVProgressHUD).\n\n|                                             |  LCToast   |    Toast    | SVProgressHUD |\n| :-----------------------------------------: | :--------: | :---------: | :-----------: |\n|               image position                | top center | left center |  top center   |\n|                  superview                  | any views  |  any views  |   UIWindow    |\n|  automatic calculation text time interval   |     ✅      |      ❌      |       ✅       |\n|      dismiss activity when toast shown      |     ✅      |      ❌      |       ✅       |\n|   activity/progress support  the message    |     ✅      |      ❌      |       ✅       |\n|                modify offset                |     ❌      |      ✅      |       ✅       |\n|                  progress                   |     ✅      |      ❌      |       ✅       |\n|                  subtitle                   |     ❌      |      ✅      |       ❌       |\n|                    queue                    |     ✅      |      ✅      |       ❌       |\n| support for disabling superview interaction |     ✅      |      ❌      |       ✅       |\n\n## Usage\n\n### show toast\n\n```objective-c\n[self.view lc_showToast:@\"床前明月光，疑是地上霜。举头望明月，低头思故乡。\"];\n```\n\n|                      LCToastPositionTop                      |                    LCToastPositionCenter                     |                    LCToastPositionBottom                     |\n| :----------------------------------------------------------: | :----------------------------------------------------------: | :----------------------------------------------------------: |\n| ![top](https://github.com/iLiuChang/LCToast/raw/main/Images/top.png) | ![center](https://github.com/iLiuChang/LCToast/raw/main/Images/center.png) | ![bottom](https://github.com/iLiuChang/LCToast/raw/main/Images/bottom.png) |\n\n### show image toast\n\n```objective-c\n[self.view lc_showToast:@\"春种一粒粟，秋收万颗子。四海无闲田，农夫犹饿死。锄禾日当午，汗滴禾下土。谁知盘中餐，粒粒皆辛苦。\" image:[UIImage imageNamed:@\"warning\"] position:(LCToastPositionCenter)];\n```\n\n\u003cimg src=\"https://github.com/iLiuChang/LCToast/raw/main/Images/toast_image.png\" width=\"300\" /\u003e\n\n### show activity toast\n\n```objective-c\n[self.view lc_showActivityToast:@\"加载中...\"];\n```\n\n\u003cimg src=\"https://github.com/iLiuChang/LCToast/raw/main/Images/loading.png\" width=\"300\" /\u003e\n\n### show progress toast\n\n```objective-c\n[self.view lc_showProgressToast:0.7 message:@\"下载中...\"];\n```\n\n\u003cimg src=\"https://github.com/iLiuChang/LCToast/raw/main/Images/progress.png\" width=\"300\" /\u003e\n\n## Installation\n\n### CocoaPods\n\nTo integrate LCToast into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\npod 'LCToast'\n```\n\n### Manual\n\n1. Download everything in the LCToast folder;\n2. Add (drag and drop) the source files in LCToast to your project;\n3. Import `UIView+LCToast.h`.\n\n## License\n\nLCToast is provided under the MIT license. See LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filiuchang%2Flctoast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filiuchang%2Flctoast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filiuchang%2Flctoast/lists"}