File tree Expand file tree Collapse file tree
GoInfoGame/GoInfoGame/UI/Map/Accessibility Mode Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,18 +91,16 @@ struct UndoEditsView: View {
9191 }
9292 . toolbarBackground ( . visible, for: . navigationBar)
9393 }
94- . sheet ( item: $selectedItem) { _ in
95- if let item = selectedItem {
96- UndoItemConfirmationView ( undoItem: item) {
97- viewModel. undo ( item: item)
98- } onClose: {
99- self . selectedItem = nil
100- }
101- . presentationDetents ( [ . fraction( 0.7 ) ] )
102- . interactiveDismissDisabled ( )
103- . presentationDragIndicator ( . hidden)
104- . applyPresentationSizingPage ( )
94+ . sheet ( item: $selectedItem) { item in
95+ UndoItemConfirmationView ( undoItem: item) {
96+ viewModel. undo ( item: item)
97+ } onClose: {
98+ self . selectedItem = nil
10599 }
100+ . presentationDetents ( [ . fraction( 0.7 ) ] )
101+ . interactiveDismissDisabled ( )
102+ . presentationDragIndicator ( . hidden)
103+ . applyPresentationSizingPage ( )
106104 }
107105 . onReceive ( MapViewPublisher . shared. dismissSheet) { scenario in
108106 if case . undoDone( _) = scenario {
You can’t perform that action at this time.
0 commit comments