{"id":25197864,"url":"https://github.com/douking/lvmalerthud","last_synced_at":"2025-04-04T16:45:24.502Z","repository":{"id":56919272,"uuid":"60168596","full_name":"DouKing/LVMAlertHUD","owner":"DouKing","description":"An alert/action-sheet control.","archived":false,"fork":false,"pushed_at":"2019-12-27T02:44:51.000Z","size":92740,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T07:17:44.243Z","etag":null,"topics":["actionsheet","alert","chainable-methods","dialog","dsl","oc","tost"],"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/DouKing.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":"2016-06-01T10:42:49.000Z","updated_at":"2020-07-14T02:38:09.000Z","dependencies_parsed_at":"2022-08-21T04:50:32.737Z","dependency_job_id":null,"html_url":"https://github.com/DouKing/LVMAlertHUD","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/DouKing%2FLVMAlertHUD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouKing%2FLVMAlertHUD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouKing%2FLVMAlertHUD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouKing%2FLVMAlertHUD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DouKing","download_url":"https://codeload.github.com/DouKing/LVMAlertHUD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247215869,"owners_count":20903003,"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":["actionsheet","alert","chainable-methods","dialog","dsl","oc","tost"],"created_at":"2025-02-10T02:20:13.955Z","updated_at":"2025-04-04T16:45:24.483Z","avatar_url":"https://github.com/DouKing.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://travis-ci.org/DouKing/LVMAlertHUD.svg?branch=master)\n\n\n## LVMAlertController\n\n\u003e An alert control that follows the system's API.\n\n![](./capture.gif)\n\n## Usage\n\n- The basic\n\n```objc\n\nLVMAlertController *alertController = [LVMAlertController alertControllerWithTitle:@\"TITLE\" message:@\"some message\" preferredStyle:LVMAlertControllerStyleAlert];\n\nLVMAlertAction *action = [LVMAlertAction actionWithTitle:@\"OK\" style:LVMAlertActionStyleDefault handler:nil];\n[alertController addAction:action];\n\naction = [LVMAlertAction actionWithTitle:@\"Cancel\" style:LVMAlertActionStyleCancel handler:^(LVMAlertAction * _Nonnull action) {\n    NSLog(@\"%@\", action.title);\n}];\n[alertController addAction:action];\n\n[alertController addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {\n    textField.placeholder = @\"A text field placeholder\";\n}];\n\n[self presentViewController:alertController animated:YES completion:nil];\n\n```\n\n- support for DSL\n\n```objc\n\nLVMAlertController.alert\n    .setupTitle(@\"Title\")\n    .setupMessage(@\"message\")\n    .addActionsWithTitles(@\"ok\", @\"later\", @\"know\", nil)\n    .addCancelActionWithTitle(@\"cancel\")\n    .actionsHandler(^(NSInteger index, LVMAlertAction *action) {\n        NSLog(@\"click %ld, %@\", index, action.title);\n    })\n    .show(^{\n        NSLog(@\"show\");\n    });\n\n```\n\n## The other UI controls contain\n\n- LVMStatusBarHUD\n- LVMToastHUD\n\n## Install with CocoaPods\n\nAdd the following content to your Podfile.\n\n```ruby\npod 'LVMAlertHUD'\n```\n\nOR\n\n```ruby\npod 'LVMAlertHUD/AlertController' \npod 'LVMAlertHUD/StatusBarHUD'\npod 'LVMAlertHUD/Toast'\n```\n#### Compatibility\n\n- iOS 8.0+\n- Xcode 9.4\n\n## License\n\nSee LICENSE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouking%2Flvmalerthud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouking%2Flvmalerthud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouking%2Flvmalerthud/lists"}