Skip to content

Commit 1fcf56b

Browse files
Fix compilation on iOS (#50)
1 parent 3a7360c commit 1fcf56b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MCMaps/Legacy/Views/ContentViewToolbar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct ContentViewToolbar: ToolbarContent {
3131
}
3232
}
3333
ToolbarItem {
34-
NavigationLink(value: CartographyRoute.createPin(.zero)) {
34+
NavigationLink(value: CartographyRoute.createPin(.zero, nil)) {
3535
Label("Create Pin", image: "mappin.circle.badge.plus")
3636
}
3737
}

MCMaps/Legacy/Views/Sidebar/RecentLocationsListSection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ struct RecentLocationsListSection: View {
8181
private func createPinButton(for position: CGPoint) -> some View {
8282
Group {
8383
#if os(iOS)
84-
NavigationLink(value: CartographyRoute.createPin(position)) {
84+
NavigationLink(value: CartographyRoute.createPin(position, nil)) {
8585
Label("Pin...", systemImage: "mappin")
8686
}
8787
#else

0 commit comments

Comments
 (0)