I wrote a
UIAlertController extension that allows you to perform validation of the text the user has entered while the alert is on screen. It’s nothing earth-shattering, but what I like about it is that the behavior is entirely encapsulated in the initializer. Clients only deal with the same
UIAlertController object they’re used to.
August 13, 2018