Skip to content

Commit 5eb3fd3

Browse files
Hide toolbar on map on macOS
1 parent a356bd3 commit 5eb3fd3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MCMaps/Red Window/Views/Map/RedWindowMapView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ struct RedWindowMapView: View {
5454
.mapColorScheme(useNaturalColors ? .natural : .default)
5555
}
5656
}
57+
#if os(macOS)
58+
.toolbarBackgroundVisibility(.hidden, for: .windowToolbar)
59+
#endif
5760
.animation(.interactiveSpring, value: state)
5861
.ignoresSafeArea(.all)
5962
.overlay(alignment: .bottomLeading) {

0 commit comments

Comments
 (0)