Skip to content

Commit 8ebfb84

Browse files
authored
Merge pull request #315 from Esri/Caleb/Update-AddPreviews
[Setup] Add previews to samples
2 parents b1cafa8 + dbe88ea commit 8ebfb84

File tree

80 files changed

+421
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+421
-31
lines changed

Shared/Samples/Add WMS layer/AddWMSLayerView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,7 @@ struct AddWMSLayerView: View {
4545
MapView(map: map)
4646
}
4747
}
48+
49+
#Preview {
50+
AddWMSLayerView()
51+
}

Shared/Samples/Add clustering feature reduction to a point feature layer/AddClusteringFeatureReductionToAPointFeatureLayerView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ struct AddClusteringFeatureReductionToAPointFeatureLayerView: View {
7373
}
7474
}
7575
}
76+
77+
#Preview {
78+
NavigationView {
79+
AddClusteringFeatureReductionToAPointFeatureLayerView()
80+
}
81+
}

Shared/Samples/Add dynamic entity layer/AddDynamicEntityLayerView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,9 @@ struct AddDynamicEntityLayerView: View {
114114
}
115115
}
116116
}
117+
118+
#Preview {
119+
NavigationView {
120+
AddDynamicEntityLayerView()
121+
}
122+
}

Shared/Samples/Add scene layer from service/AddSceneLayerFromServiceView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,7 @@ private extension URL {
5252
URL(string: "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer")!
5353
}
5454
}
55+
56+
#Preview {
57+
AddSceneLayerFromServiceView()
58+
}

Shared/Samples/Analyze network with subnetwork trace/AnalyzeNetworkWithSubnetworkTraceView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,3 +311,9 @@ private extension UtilityNetworkAttributeComparison.Operator {
311311
static var allCases: [UtilityNetworkAttributeComparison.Operator] { [.equal, .notEqual, .greaterThan, .greaterThanEqual, .lessThan, .lessThanEqual, .includesTheValues, .doesNotIncludeTheValues, .includesAny, .doesNotIncludeAny]
312312
}
313313
}
314+
315+
#Preview {
316+
NavigationView {
317+
AnalyzeNetworkWithSubnetworkTraceView()
318+
}
319+
}

Shared/Samples/Apply unique value renderer/ApplyUniqueValueRendererView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,7 @@ struct ApplyUniqueValueRendererView: View {
7878
MapView(map: map)
7979
}
8080
}
81+
82+
#Preview {
83+
ApplyUniqueValueRendererView()
84+
}

Shared/Samples/Augment reality to fly over scene/AugmentRealityToFlyOverSceneView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,7 @@ private extension URL {
5858
.init(string: "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer")!
5959
}
6060
}
61+
62+
#Preview {
63+
AugmentRealityToFlyOverSceneView()
64+
}

Shared/Samples/Browse building floors/BrowseBuildingFloorsView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,7 @@ private extension PortalItem.ID {
7575
/// A portal item of Building L's floors on the Esri Redlands campus.
7676
static var esriBuildingL: Self { Self("f133a698536f44c8884ad81f80b6cfc7")! }
7777
}
78+
79+
#Preview {
80+
BrowseBuildingFloorsView()
81+
}

Shared/Samples/Change map view background/ChangeMapViewBackgroundView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,9 @@ struct ChangeMapViewBackgroundView: View {
4040
}
4141
}
4242
}
43+
44+
#Preview {
45+
NavigationView {
46+
ChangeMapViewBackgroundView()
47+
}
48+
}

Shared/Samples/Change viewpoint/ChangeViewpointView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,7 @@ extension ChangeViewpointView {
128128
}
129129
}
130130
}
131+
132+
#Preview {
133+
ChangeViewpointView()
134+
}

0 commit comments

Comments
 (0)