UIAlertController is a default iOS SDK controller that we all use in our applications from time to time. Presenting such a controller is not a difficult task at all, but there are a few disadvantages coming with it:
- It’s boring and totally anti-productive to write almost identical code multiple times.
- We write unnecessary lines of code, while we should be able to display the alert controller and handle the actions fast.
- For common cases it’s easy to remember what to do. But what happens in more rare cases where we want to present an alert controller with an activity indicator, or a progress bar in it? That’s definitely not something we do every day, so all we get is loss of time trying to find how exactly to implement these kind of alerts.
The above have been troubling me for years, so I decided to do something drastic about that: To create the GTAlertCollection library. And now it’s time to share it with the world.