File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
Shared/Samples/Find route in mobile map package Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments