File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed
Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -200,17 +200,7 @@ struct MapView: View {
200200 . foregroundStyle ( Color ( red: 135 / 255 , green: 62 / 255 , blue: 242 / 255 ) )
201201 }
202202 }
203- // ToolbarItem(placement: .navigationBarTrailing) {
204- // Button(action: {
205- // print("Refresh icon tapped")
206- // viewModel.fetchOSMDataFor(from: .currentLocation(location: viewModel.userlocation))
207- // }) {
208- // Image(systemName: "arrow.2.circlepath")
209- // .frame(width: 20, height: 20)
210- // .foregroundStyle(Color(red: 135/255, green: 62/255, blue: 242/255))
211- // }
212- // }
213-
203+
214204 ToolbarItem ( placement: . navigationBarTrailing) {
215205 Button ( action: {
216206 print ( " Settings icon tapped " )
Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ struct UndoButton: View {
2424 UndoSidebarView (
2525 onUndo: { id, type in
2626 MapUndoManager . shared. undo ( for: Int64 ( id) , type: type)
27- onRevert ( id, type) // Permanently keep annotation
27+ onRevert ( id, type)
2828 undoItems = MapUndoManager . shared. getUndoItems ( )
2929 withAnimation { showSidebar = false }
3030 } ,
3131 onClose: { withAnimation { showSidebar = false } } ,
3232 onItemSelected: { item in
3333 selectedUndoItem = item
3434 showUndoPopup = true
35- onPreview ( item. elementId, item. type) // Show temp annotation
35+ onPreview ( item. elementId, item. type)
3636 }
3737 )
3838 . transition ( . move( edge: . leading) )
@@ -62,7 +62,7 @@ struct UndoButton: View {
6262 . ignoresSafeArea ( )
6363 . onTapGesture {
6464 showUndoPopup = false
65- onRemovePreview ( ) // Remove temp annotation
65+ onRemovePreview ( )
6666 }
6767
6868 VStack ( spacing: 16 ) {
@@ -84,14 +84,14 @@ struct UndoButton: View {
8484 HStack {
8585 Button ( " Cancel " ) {
8686 showUndoPopup = false
87- onRemovePreview ( ) // Remove temp annotation
87+ onRemovePreview ( )
8888 }
8989
9090 Spacer ( )
9191
9292 Button ( " Revert " ) {
9393 MapUndoManager . shared. undo ( for: Int64 ( item. elementId) , type: item. type)
94- onRevert ( item. elementId, item. type) // Keep annotation
94+ onRevert ( item. elementId, item. type)
9595 showUndoPopup = false
9696 showSidebar = false
9797 }
You can’t perform that action at this time.
0 commit comments