Skip to content

Commit c2af3a3

Browse files
evil159github-actions[bot]
authored andcommitted
[maps-ios] visionOS example nightly build (#10916)
Addresses: https://mapbox.atlassian.net/browse/MAPSIOS-2027 Successful test run https://github.com/mapbox/mapbox-sdk/actions/runs/22909905413/job/66479134788 cc @mapbox/maps-ios GitOrigin-RevId: 72f944724afff91e7248e6aeff6b1f0ab31b624e
1 parent f4db3ce commit c2af3a3

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Sources/Examples/Models/Example.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public struct Example: Sendable {
1616
self.destination = destination
1717
}
1818

19+
#if !os(visionOS)
1920
init(title: String, description: String, testTimeout: TimeInterval = 20.0, type: ExampleProtocol.Type) {
2021
self.title = title
2122
self.description = description
@@ -51,6 +52,7 @@ public struct Example: Sendable {
5152
}
5253

5354
func makeViewController() -> UIViewController { Self.viewControllerFrom(type: type, title: title) }
55+
#endif
5456
}
5557

5658
@resultBuilder

Sources/Examples/Models/Examples.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import MapboxMaps
99
// swiftlint:disable:next type_body_length
1010

1111
struct Examples {
12+
#if !os(visionOS)
1213
// Examples that show how to get started with Mapbox, such as creating a basic map view or setting a style once.
1314
static let gettingStartedExamples: [Example] = .init {
1415
Example(title: "Display a map view",
@@ -310,6 +311,7 @@ struct Examples {
310311
description: "Display your heatmap using the globe projection.",
311312
type: HeatmapLayerGlobeExample.self)
312313
}
314+
#endif
313315
}
314316

315317
extension Examples {
@@ -338,6 +340,7 @@ extension Examples {
338340
}
339341
}
340342

343+
#if !os(visionOS)
341344
static let all: [Category] = .init {
342345
Category(title: "Getting started", examples: gettingStartedExamples)
343346
Category(title: "3D and Fill Extrusions", examples: threeDExamples)
@@ -352,6 +355,7 @@ extension Examples {
352355
Category(title: "Accessibility", examples: accessibilityExamples)
353356
Category(title: "Globe and Atmosphere", examples: globeAndAtmosphere)
354357
}
358+
#endif
355359
}
356360

357361
extension Array {

xcodegen/Examples.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ targets:
2323
- "SwiftUI Examples/**"
2424
- "All Examples/Sample Data/**"
2525
- "Assets.xcassets/**"
26+
- "Models/**"
2627
destinationFilters: [iOS]
2728
- path: ../Sources/Examples
2829
includes:
@@ -34,6 +35,7 @@ targets:
3435
- "Extensions/**"
3536
- "All Examples/Sample Data/**"
3637
- "Assets.xcassets/**"
38+
- "Models/**"
3739
# destinationFilters: [iOS, visionOS]
3840

3941
dependencies:

0 commit comments

Comments
 (0)