diff --git a/Sources/FlowStacks/View+cover.swift b/Sources/FlowStacks/View+cover.swift index ce7eef0..c781a24 100644 --- a/Sources/FlowStacks/View+cover.swift +++ b/Sources/FlowStacks/View+cover.swift @@ -40,13 +40,13 @@ extension View { if asSheet { self.sheet( isPresented: isPresented, - onDismiss: nil, + onDismiss: onDismiss, content: content ) } else { self.cover( isPresented: isPresented, - onDismiss: nil, + onDismiss: onDismiss, content: content ) }