Currently, it is difficult to close these alerts programmatically, because once the alert is displayed, there is no returned object.
I added the capability to return the alertController from a public method within UIAlertController+Window so that if the alert needs to be tracked and closed by the program.
Would you be interested in this?