{"id":17867221,"url":"https://github.com/s/chainedalertcontroller","last_synced_at":"2025-03-21T09:31:28.345Z","repository":{"id":71889212,"uuid":"137263863","full_name":"s/ChainedAlertController","owner":"s","description":"A mechanism for chaining UIAlertController's to each other","archived":false,"fork":false,"pushed_at":"2018-06-13T20:38:51.000Z","size":13,"stargazers_count":10,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T23:44:34.771Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/s.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-13T19:55:16.000Z","updated_at":"2025-02-24T01:09:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"5986313f-4950-4da6-9795-54a008534645","html_url":"https://github.com/s/ChainedAlertController","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s%2FChainedAlertController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s%2FChainedAlertController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s%2FChainedAlertController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s%2FChainedAlertController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s","download_url":"https://codeload.github.com/s/ChainedAlertController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244771774,"owners_count":20507861,"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-10-28T09:45:35.458Z","updated_at":"2025-03-21T09:31:28.338Z","avatar_url":"https://github.com/s.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChainedAlertController\nA mechanism for chaining UIAlertController's to each other\n\nA small iOS code snippet to create dynamically chained UIAlerts. Example usage:\n\n```swift\nfileprivate lazy var firstAction: ChainedAlertTree = {\n    let cancelAction = ChainedAlertAction(title: \"Cancel\", style: .cancel, shouldTriggerNextAlert: false, handler: nil)\n    let triggerNextAction = ChainedAlertAction(title: \"Trigger next\", style: .default, shouldTriggerNextAlert: true, handler: nil)\n    let alert = ChainedAlert(title: \"First alert title\", message: \"First alert message\", actions: [cancelAction, triggerNextAction])\n    return ChainedAlertTree.alert(alert: alert, nextAlert: secondAction)\n}()\n\nfileprivate lazy var secondAction: ChainedAlertTree = {\n    let cancelAction = ChainedAlertAction(title: \"Cancel\", style: .cancel, shouldTriggerNextAlert: false, handler: nil)\n    let triggerNextAction = ChainedAlertAction(title: \"Trigger next\", style: .default, shouldTriggerNextAlert: true, handler: nil)\n    let alert = ChainedAlert(title: \"Second action title\", message: \"Second action message\", actions: [cancelAction, triggerNextAction])\n    return ChainedAlertTree.alert(alert: alert, nextAlert: thirdAction)\n}()\n\nfileprivate lazy var thirdAction: ChainedAlertTree = {\n    let cancelAction = ChainedAlertAction(title: \"It's enough.\", style: .cancel, shouldTriggerNextAlert: false, handler: nil)\n    let alert = ChainedAlert(title: \"Third action title\", message: \"Third action message\", actions: [cancelAction])\n    return ChainedAlertTree.alert(alert: alert, nextAlert: nil)\n}()\n```\n\nAnd then:\n```swift\nshowChainedAlert(alert: firstAction)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs%2Fchainedalertcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs%2Fchainedalertcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs%2Fchainedalertcontroller/lists"}