Create a Custom UIAlertView in Swift
Design it yourself!
5 min readMay 28, 2022
Prerequisites:
- You will be expected to be aware how to make a Single View Application in Swift
- It would be useful to be familar with UIStackView
- I connected storyboard objects to code, and used delegation within this solution
Terminology
- UIWindow: The basic container for an application’s content on screen. iOS Apps usually have one (not always (there can be more than one), that is, usually)
This project
This is a project that creates a custom UIView
that is:
- Customizable
- Locks the user interface
The second of these is especially important as when the UIView
is displayed it is good practice to prevent a user from being able to interact with the underlying interface — they should only be able to interact with the alert itself!