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