shaps80 / SwiftUIBackports

A collection of SwiftUI backports for iOS, macOS, tvOS and watchOS
MIT License
960 stars 60 forks source link

Dismiss from environment #8

Closed K1NXZ closed 2 years ago

K1NXZ commented 2 years ago

In iOS 15+ the way to dismiss a sheet/modal is to use @Environment(\.dismiss). In previous versions it was @Environment(\.presentationMode) which is now deprecated.

I am not sure what would be the best approach to implement the API in the Backport for that, any idea?

shaps80 commented 2 years ago

Yep I actually have that on my list. Not difficult at all. It’s almost done cause I previously did my own presentation dismiss for standard UIKit presentation. I’ll get this in for sure 👍

shaps80 commented 2 years ago

Closing, as this is now included in version 1.2.0