{"id":16948674,"url":"https://github.com/timoliver/toalertviewcontroller","last_synced_at":"2025-04-11T20:12:43.577Z","repository":{"id":56923053,"uuid":"188274786","full_name":"TimOliver/TOAlertViewController","owner":"TimOliver","description":"A modern looking modal popup UI component for iOS and iPadOS.","archived":false,"fork":false,"pushed_at":"2020-01-29T10:32:06.000Z","size":2950,"stargazers_count":24,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-11T20:12:38.685Z","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/TimOliver.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"timoliver","custom":"https://tim.dev/paypal"}},"created_at":"2019-05-23T17:01:33.000Z","updated_at":"2023-07-18T18:42:38.000Z","dependencies_parsed_at":"2022-08-21T05:20:12.528Z","dependency_job_id":null,"html_url":"https://github.com/TimOliver/TOAlertViewController","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOAlertViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOAlertViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOAlertViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOAlertViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimOliver","download_url":"https://codeload.github.com/TimOliver/TOAlertViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473126,"owners_count":21109628,"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-13T21:51:58.936Z","updated_at":"2025-04-11T20:12:43.548Z","avatar_url":"https://github.com/TimOliver.png","language":"Objective-C","funding_links":["https://github.com/sponsors/timoliver","https://tim.dev/paypal","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=M4RKULAVKV7K8"],"categories":[],"sub_categories":[],"readme":"# TOAlertViewController\n\n\u003cimg src=\"https://raw.githubusercontent.com/TimOliver/TOAlertViewController/master/screenshot.jpg\" width=\"600\" align=\"right\" alt=\"TORoundedButton\" /\u003e\n\n\n[![Actions Status](https://github.com/TimOliver/TOAlertViewController/workflows/CI/badge.svg)](https://github.com/TimOliver/TOAlertViewController/actions)\n[![Version](https://img.shields.io/cocoapods/v/TOAlertViewController.svg?style=flat)](http://cocoadocs.org/docsets/TOAlertViewController)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/TimOliver/TOAlertViewController/master/LICENSE)\n[![Platform](https://img.shields.io/cocoapods/p/TOAlertViewController.svg?style=flat)](http://cocoadocs.org/docsets/TOAlertViewController)\n[![PayPal](https://img.shields.io/badge/paypal-donate-blue.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=M4RKULAVKV7K8)\n[![Twitch](https://img.shields.io/badge/twitch-timXD-6441a5.svg)](http://twitch.tv/timXD)\n\n`TOAlertViewController` is a custom re-implementation of `UIAlertController` with a much more modern visual design. It features a large bold title\nand rounded action buttons in line with the more modern design language of iOS that started appearing since 2017.\n\n# Features\n\n* A much more modern look and field than the native `UIAlertController` class (As of iOS 13).\n* Includes theming for default, and destructive action buttons.\n* Provides an optional dark mode appearance.\n* Smooth presentation and dismissal animations.\n* Uses `UIVisualEffectView` to produce a subtle 'depth-of-field' effect when presented.\n\n# Examples\n\n`TOAlertViewController` features a complete default configuration useful for most app instances, but can be easily modified beyond that.\n\n```objc\n\n    TOAlertViewController *alertController = [[TOAlertViewController alloc]\n                                              initWithTitle:@\"Are you sure?\" message:@\"This action may take some time to complete. Are you sure you wish to perform this action?\"];\n\n    alertController.defaultAction = [TOAlertAction alertActionWithTitle:@\"Yes\" action:^{ NSLog(@\"Default Button Tapped!\"); }];\n    alertController.cancelAction = [TOAlertAction alertActionWithTitle:@\"Cancel\" action:^{ NSLog(@\"Cancel Button Tapped!\"); }];\n\n    [self presentViewController:alertController animated:YES completion:nil];\n\n```\n\n# Requirements\n\n`TOAlertViewController` will work with iOS 11 and above. While written in Objective-C, it will easily import into Swift.\nIt also requires the [`TORoundedButton`](https://github.com/TimOliver/TORoundedButton) library to be installed in your app.\n\n## Manual Installation\n\nCopy the contents of the `TOAlertViewController` folder to your app project. \nDownload a copy of [`TORoundedButton`](https://github.com/TimOliver/TORoundedButton) and also be sure to install that into your project as well.\n\n## CocoaPods\n\nCocoaPods automatically manages importing `TORoundedButton` itself.\n\n```\npod 'TOAlertViewController'\n```\n\n## Carthage\n\n```\ngithub \"TimOliver/TORoundedButton\"\ngithub \"TimOliver/TOAlertViewController\"\n```\n\n# Credits\n\n`TOAlertViewController` was created by [Tim Oliver](http://twitter.com/TimOliverAU) as a component of [iComics](http://icomics.co).\n\nThe iOS device mockup art was also created by Tim Oliver and is [available on Dribbble](https://dribbble.com/shots/1129682-iPod-touch-5G-PSD-Template).\n\n# License\n\n`TOAlertViewController`  is available under the MIT license. Please see the [LICENSE](LICENSE) file for more information. ![analytics](https://ga-beacon.appspot.com/UA-5643664-16/TOAlertViewController/README.md?pixel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Ftoalertviewcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimoliver%2Ftoalertviewcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Ftoalertviewcontroller/lists"}