Create a Custom UIAlertView in Swift

Design it yourself!

Steven Curtis
5 min readMay 28, 2022
Photo by Ralph (Ravi) Kayden on Unsplash

Prerequisites:

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!

--

--