Skip to content

Commit 91f6a6b

Browse files
committed
Update images.
1 parent 015115b commit 91f6a6b

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

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

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,23 +101,19 @@ private extension FindRouteInMobileMapPackageView {
101101
.resizable()
102102
.scaledToFit()
103103
.frame(height: 50)
104-
.overlay {
104+
.overlay(alignment: .top) {
105105
// 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.
115-
Image(systemName: "mappin.circle")
116-
}
117-
}
118-
.padding(2)
106+
HStack {
107+
// The symbol indicating whether the map can route.
108+
Image(systemName: "arrow.triangle.turn.up.right.circle")
109+
.opacity(!map.transportationNetworks.isEmpty ? 1 : 0)
119110
Spacer()
111+
// The symbol indicating whether the map can geocode.
112+
Image(systemName: "mappin.circle")
113+
.opacity(mapPackage.locatorTask != nil ? 1 : 0)
120114
}
115+
.foregroundColor(.black)
116+
.padding(2)
121117
}
122118

123119
Text(mapName)

0 commit comments

Comments
 (0)