Skip to content

Commit 6c2b9a5

Browse files
authored
Merge pull request #147 from TaskarCenterAtUW/feature-initial-detent-fix
Fix initial detent after closing at fraction 10
2 parents 06c49f5 + 1b713d0 commit 6c2b9a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GoInfoGame/GoInfoGame/UI/Map/MapView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ struct MapView: View {
3737

3838
isPresented: $isPresented, contextualInfo: { contextualInfo in
3939
print(contextualInfo)
40+
selectedDetent = .fraction(0.8)
4041
self.setContextualInfo(contextualinfo: contextualInfo)
4142
})
4243
.onChange(of: viewModel.selectedQuest) { _ in
@@ -120,6 +121,7 @@ struct MapView: View {
120121
}
121122
.presentationDetents([.fraction(0.8), .fraction(0.5), .fraction(0.1)], selection: $selectedDetent)
122123
.scrollDisabled(false)
124+
.interactiveDismissDisabled()
123125
.environmentObject(contextualInfo)
124126
.onAppear {
125127
shouldShowPolyline = true

0 commit comments

Comments
 (0)