Skip to content

Commit 129c382

Browse files
fix: set missing onDismiss params in su modals
1 parent 1155cdd commit 129c382

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sources/ComponentsKit/Components/Modal/SwiftUI/SUBottomModal.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ extension View {
309309
return self.bottomModal(
310310
item: item,
311311
model: model,
312+
onDismiss: onDismiss,
312313
header: { _ in EmptyView() },
313314
body: body,
314315
footer: { _ in EmptyView() }

Sources/ComponentsKit/Components/Modal/SwiftUI/SUCenterModal.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ extension View {
271271
return self.centerModal(
272272
item: item,
273273
model: model,
274+
onDismiss: onDismiss,
274275
header: { _ in EmptyView() },
275276
body: body,
276277
footer: { _ in EmptyView() }

0 commit comments

Comments
 (0)