Skip to content

Commit f56f3f0

Browse files
committed
Fix xcode buil error
1 parent 1eb7663 commit f56f3f0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/AutoResizingSheet/ViewModifiers/AutoResizingSheetViewModifier.swift

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ struct AutoResizingSheetViewModifier<SheetContent: View>: ViewModifier {
1515
_isPresented = isPresented
1616
self.configuration = configuration
1717
self.sheetContent = sheetContent as () -> SheetContent
18-
selectedDetent = .medium
19-
detents = []
2018

2119
let initialDetent: PresentationDetent = .medium
22-
selectedDetent = initialDetent
23-
detents = [initialDetent]
20+
_selectedDetent = State(initialValue: initialDetent)
21+
_detents = State(initialValue: [initialDetent])
2422
if configuration.extendableToFullSize {
2523
detents.insert(.large)
2624
}

0 commit comments

Comments
 (0)