{"id":13743385,"url":"https://github.com/problame/CSNotificationView","last_synced_at":"2025-05-09T01:30:45.652Z","repository":{"id":10690620,"uuid":"12931951","full_name":"problame/CSNotificationView","owner":"problame","description":"Drop-in, semi-translucent and blurring notification view.","archived":false,"fork":false,"pushed_at":"2018-09-04T21:16:43.000Z","size":870,"stargazers_count":900,"open_issues_count":21,"forks_count":152,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-10-12T21:33:54.216Z","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/problame.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-18T19:02:30.000Z","updated_at":"2024-10-12T12:16:00.000Z","dependencies_parsed_at":"2022-09-14T03:00:46.855Z","dependency_job_id":null,"html_url":"https://github.com/problame/CSNotificationView","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/problame%2FCSNotificationView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/problame%2FCSNotificationView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/problame%2FCSNotificationView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/problame%2FCSNotificationView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/problame","download_url":"https://codeload.github.com/problame/CSNotificationView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224632865,"owners_count":17343924,"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-03T05:00:45.700Z","updated_at":"2024-11-15T14:31:13.354Z","avatar_url":"https://github.com/problame.png","language":"Objective-C","readme":"#CSNotificationView\n\nEasy to use, semi-translucent and blurring notification view that drops into `UIView`, `UITableView`, `UICollectionView`.\nAlso supports displaying progress.\n\n**Supports iOS 7 and iOS 8. Requires Xcode 6.**\n\n\n\u003cdiv style=\"float: left; text-align: center\"\u003e\n\u003cimg src=\"https://f.cloud.github.com/assets/956573/1240926/3764db88-2a14-11e3-89d2-c1492b003d33.png\" width=\"30%\"\u003e\u003c/img\u003e\n\u0026nbsp;\n\u003cimg src=\"https://f.cloud.github.com/assets/956573/1240925/375efbdc-2a14-11e3-9258-7fc4395ae019.png\" width=\"30%\"\u003e\u003c/img\u003e\n\u0026nbsp;\n\u003cimg src=\"https://f.cloud.github.com/assets/956573/1329610/502c2ed0-351a-11e3-859d-534c792a7c65.png\" width=\"30%\"\u003e\u003c/img\u003e\n\n\n\u003c/div\u003e\n\n##Example code\n\n###Quick presentation\n\n```objc\n[CSNotificationView showInViewController:self\n\t\t\t\t\t\t\t\t\tstyle:CSNotificationViewStyleError\n\t\t\t\t\t\t\t\t  message:@\"A critical error happened.\"];\n\t\t\t\t\t\t\t\t\t  \n[CSNotificationView showInViewController:self\n\t\t\t\t\t\t\t\t\tstyle:CSNotificationViewStyleSuccess\n\t\t\t\t\t\t\t\t  message:@\"Great, it works.\"];\n\t\t\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t\t  \n```\n\n###UIActivityIndicatorView built-in\n\n```objc\nCSNotificationView* note = (...);\nnote.showingActivity = YES;\n\n[note setVisible:YES animated:YES completion:nil];\n(...)\n[note dismissWithStyle:CSNotificationViewStyleSuccess message:@\"Success!\"\n\t      duration:kCSNotificationViewDefaultShowDuration animated:YES];\n```\n\n###Tap handling\n\nHandle tap events on the notification using a block callback\n\n```objc\n    __block typeof(self) weakSelf = self;\n    self.loadingNotificationView.tapHandler = ^{\n        [weakSelf cancelOperationXYZ];\n        [weakSelf.loadingNotificationView dismissWithStyle:CSNotificationViewStyleError\n                                  \t   message:@\"Cancelled\"\n                                  \t  duration:kCSNotificationViewDefaultShowDuration animated:YES];\n    };\n```\n\n###Customization\n\n####Custom image / icon\n\n```objc\nnote.image = [UIImage imageNamed:@\"mustache\"];\n```\n\n####Flexible with text \u0026 no images\n\n```objc\n[CSNotificationView showInViewController:self\n        tintColor:[UIColor colorWithRed:0.000 green:0.6 blue:1.000 alpha:1]\n            image:nil\n          message:@\"No icon and a message that needs two rows and extra \\\n                    presentation time to be displayed properly.\"\n         duration:5.8f];\n\n```\n\n\n##License\n\nSee [LICENSE.md](https://raw.github.com/problame/CSNotificationView/master/LICENSE.md)\n","funding_links":[],"categories":["Objective-C  Stars 1000以内排名整理","Objective-C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproblame%2FCSNotificationView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproblame%2FCSNotificationView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproblame%2FCSNotificationView/lists"}