Skip to content

Commit 252cbf4

Browse files
authored
Merge pull request #359 from Esri/Caleb/Fix-FindRouteInMobileMapPackageIcons
[Fix] Find route in mobile map package icons in dark mode
2 parents 015115b + 5ebe8c6 commit 252cbf4

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

Shared/Samples/Find route in mobile map package/FindRouteInMobileMapPackageView.swift

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -101,26 +101,30 @@ private extension FindRouteInMobileMapPackageView {
101101
.resizable()
102102
.scaledToFit()
103103
.frame(height: 50)
104-
.overlay {
105-
// The symbols indicating the map's functionality.
106-
VStack {
107-
HStack {
108-
if !map.transportationNetworks.isEmpty {
109-
// The symbol indicating whether the map can route.
110-
Image(systemName: "arrow.triangle.turn.up.right.circle")
111-
}
112-
Spacer()
113-
if mapPackage.locatorTask != nil {
114-
// The symbol indicating whether the map can geocode.
104+
105+
VStack(alignment: .leading, spacing: 2) {
106+
Text(mapName)
107+
108+
HStack {
109+
// The symbol indicating whether the map can geocode.
110+
if mapPackage.locatorTask != nil {
111+
HStack(spacing: 2) {
115112
Image(systemName: "mappin.circle")
113+
Text("Geocoding")
114+
}
115+
}
116+
117+
// The symbol indicating whether the map can route.
118+
if !map.transportationNetworks.isEmpty {
119+
HStack(spacing: 2) {
120+
Image(systemName: "arrow.triangle.turn.up.right.circle")
121+
Text("Routing")
116122
}
117123
}
118-
.padding(2)
119-
Spacer()
120124
}
125+
.font(.caption2)
126+
.foregroundStyle(.secondary)
121127
}
122-
123-
Text(mapName)
124128
}
125129
}
126130
}
1.79 KB
Loading

0 commit comments

Comments
 (0)