Almost every app needs to display and accept data from the user. The simplest way to display data is through a Text view, but sometimes you need to display data and give the user a way to respond. In that case, you can use an Alert or an Action Sheet. Yet another way to display options to the user is Contextual Menus.
12. Using Alerts, Action Sheets, and Contextual Menus
Get Beginning iPhone Development with SwiftUI: Exploring the iOS SDK now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.