UIAlertController
UIAlertController is a class in Apple's UIKit framework used to present alerts and action sheets to the user. It serves as a modern replacement for the older UIAlertView and UIActionSheet classes. UIAlertController provides a consistent and customizable way to display messages and gather input from the user.
There are two primary styles of alert controllers: alert and action sheet. An alert style typically appears
UIAlertController allows for the addition of actions, which are represented by UIAlertAction objects. These actions are
In addition to actions, UIAlertController can also present text fields for user input when using the alert
Presenting a UIAlertController is done by calling the present(_:animated:completion:) method on a UIViewController. The completion handler