Closed FelixLisczyk closed 2 years ago
Hi @FelixLisczyk,
This does not work due the fact that DismissAction
struct in SwiftUI has internal constructor, and it's not possible to instantiate it in the consumer code.
Please replace
@Environment(\.dismiss) private var dismiss
with
@Environment(\.shee_dismiss) private var dismiss
Thank you for the explanation, @edudnyk !
Thanks for the great library! I've noticed an issue where
SheeKit
'sonDismiss
handler is not called when the sheet dismisses itself by executing thedismiss
closure provided by the SwiftUI environment. Here is a quick example:When I replace
shee
with a regularsheet
, the callback works fine.