Go to https://squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.
In this video I show you how to display various types of alerts in SwiftUI. We discuss multiple buttons with destructive and cancel button roles and how to use a TextField in an alert. Then I show you how to pass an Error into your alert modifier so your alerts can be dynamic.
My iOS Dev Courses:
https://seanallen.teachable.com/
My Source Code:
https://seanallen.teachable.com/p/sou...
X (Twitter):
Sean Allen - / seanallen_dev
Hired.com:
https://hired.com/x/1n01g
Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):
Mark Moeyken’s SwiftUI Books:
https://www.bigmountainstudio.com/a/f...
Paul Hudson's Hacking With Swift:
https://gumroad.com/a/762098803
RocketSim - Enhance Your Xcode Simulator:
https://gumroad.com/a/51797971/ftvbh
Objc.io Books (Thinking in SwiftUI & Advanced Swift):
https://gumroad.com/a/656585843
Timestamps:
0:00 - Types of Alerts
0:17 - Basic Alert
3:13 - Multiple Buttons Alert
4:55 - TextField in Alert
7:23 - Passing an Error to an Alert
10:26 - Dynamic UI based on Error
#swift #softwaredeveloper #iosdeveloper
Watch video SwiftUI Alerts - Buttons, TextFields, & Passing Errors online, duration hours minute second in high quality that is uploaded to the channel Sean Allen 30 April 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 6,169 times and liked it 272 visitors.