Dismissing views in SwiftUI 3.0 & iOS 15

preview_player
Показать описание
Hello guys, Welcome to another video!

This new iteration of SwiftUI brought us great additions, but also we got some deprecations, one of them is presentationMode. Let's talk about what are the ways to dismiss modal views in SwiftUI. Additionally, I want to share my experience dismissing views since the first version of the framework.

Content:
0:00 - Intro
0:53 - Binding
5:05 - PresentationMode (deprecated in iOS 15)
6:50 - DismissAction
8:30 - callAsFunction
9:57 - My experience dismissing views in SwiftUI
12:06 - Outro

------

------
Resources:

------
Other videos in the channel:

-----
Don't forget to subscribe to the channel, like it, and follow me on social media:

Twitter:

Finally, ask me for a video you would like to see next 😄!

Credits:
- Video edited with LumaFusion
Рекомендации по теме
Комментарии
Автор

Amazing work! Simple and to the point. Just what I have been looking for. Thank you!

thyself
Автор

Good tutorial... thank you. It's will be great to see new things about SwiftUI in your channel. SwiftUI is a Future....

Mahadev-xu
Автор

Would you use your own custom closure if you wanted to return a result and then dismiss?

indiekiduk