{"id":21437603,"url":"https://github.com/gabrieltheodoropoulos/gtalertcollection","last_synced_at":"2025-07-14T15:31:10.072Z","repository":{"id":56912400,"uuid":"154638045","full_name":"gabrieltheodoropoulos/GTAlertCollection","owner":"gabrieltheodoropoulos","description":"GTAlertCollection: UIAlertController variations gathered in one place, introducing new simplified usage.","archived":false,"fork":false,"pushed_at":"2019-04-17T16:12:42.000Z","size":120,"stargazers_count":16,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-18T03:57:53.405Z","etag":null,"topics":["activity-indicator","alert","automation","collection","destructive","imageview","ios","progress-bar","swift","textfield","uialertcontroller"],"latest_commit_sha":null,"homepage":"https://gtiapps.com/?p=4735","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/gabrieltheodoropoulos.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":"2018-10-25T08:41:29.000Z","updated_at":"2024-01-15T14:47:35.000Z","dependencies_parsed_at":"2022-08-21T03:20:19.937Z","dependency_job_id":null,"html_url":"https://github.com/gabrieltheodoropoulos/GTAlertCollection","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieltheodoropoulos%2FGTAlertCollection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieltheodoropoulos%2FGTAlertCollection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieltheodoropoulos%2FGTAlertCollection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieltheodoropoulos%2FGTAlertCollection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrieltheodoropoulos","download_url":"https://codeload.github.com/gabrieltheodoropoulos/GTAlertCollection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225986121,"owners_count":17555556,"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":["activity-indicator","alert","automation","collection","destructive","imageview","ios","progress-bar","swift","textfield","uialertcontroller"],"created_at":"2024-11-23T00:27:44.487Z","updated_at":"2024-11-23T00:27:45.183Z","avatar_url":"https://github.com/gabrieltheodoropoulos.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GTAlertCollection\n\n![Platform](https://img.shields.io/cocoapods/p/GTAlertCollection.svg)\n![Language](https://img.shields.io/github/languages/top/gabrieltheodoropoulos/GTAlertCollection.svg?color=orange)\n![License](https://img.shields.io/github/license/gabrieltheodoropoulos/GTAlertCollection.svg)\n![Version](https://img.shields.io/cocoapods/v/GTAlertCollection.svg)\n\n## About\n\n**GTAlertCollection** is a Swift component that makes it possible to *present alerts as easily as just calling a single method*.\n\nGTAlertCollection implements alert controllers based on the `UIAlertController` class. It supports and provides a variety of alert types:\n\n![GTAlertCollection Demo](https://gtiapps.com/gtalertcollection/gtalertcollection_demo_small.gif)\n\n## Integrating GTAlertCollection into your project\n\nThere are two ways to integrate GTAlertCollection into your project.\n\n### Using CocoaPods\n\nIn your Podfile add the following:\n\n```ruby\npod 'GTAlertCollection'\n```\n\nThen import `GTAlertCollection` anywhere in your project where you want to use it.\n\n```swift\nimport GTAlertCollection\n```\n\n### Manually\n\nClone or download the repository, and add the *GTAlertCollection.swift* file from the *GTAlertCollection/Source* folder to your project.\n\n\n## At a glance\n\nThe following public methods are provided by `GTAlertCollection`:\n\n```swift\npresentSingleButtonAlert(withTitle:message:buttonTitle:actionHandler:)\n\npresentAlert(withTitle:message:buttonTitles:cancelButtonIndex:destructiveButtonIndices:actionHandler:)\n\npresentButtonlessAlert(withTitle:message:presentationCompletion:)\n\npresentActivityAlert(withTitle:message:activityIndicatorColor:showLargeIndicator:presentationCompletion:)\n\npresentProgressBarAlert(withTitle:message:progressTintColor:trackTintColor:showPercentage:showStepsCount:updateHandler:presentationCompletion:)\n\npresentSingleTextFieldAlert(withTitle:message:doneButtonTitle:cancelButtonTitle:configurationHandler:completionHandler:)\n\npresentMultipleTextFieldsAlert(withTitle:message:doneButtonTitle:cancelButtonTitle:numberOfTextFields:configurationHandler:completionHandler:)\n\npresentImageViewAlert(withTitle:message:buttonTitles:cancelButtonIndex:destructiveButtonIndices:image:actionHandler:)\ndismissAlert(completion:)\n```\n\nIn addition, these properties are available as well:\n\n*   `alertController`: The presented alert controller.\n*   `hostViewController`: The view controller that the alert controller is presented to.\n*   `activityIndicator`: The activity indicator of the alert.\n*   `progressBar`: The `UIProgressView` object that displays the progress bar.\n*   `label`: The label right below the progress bar.\n*   `imageView`: The image view of the alert.\n\nPlease read the [wiki](https://github.com/gabrieltheodoropoulos/GTAlertCollection/wiki) for details on how to use `GTAlertCollection` and the various alert types. You can also find [exported documentation](https://gtiapps.com/docs/gtalertcollection) by [jazzy](https://github.com/realm/jazzy).\n\n## Note\n\nThe implementation of the various alert controllers and the creation of the `GTAlertCollection` class is personal work and *not* a gathering of alerts found around on the web.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrieltheodoropoulos%2Fgtalertcollection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrieltheodoropoulos%2Fgtalertcollection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrieltheodoropoulos%2Fgtalertcollection/lists"}