Skip to content

Commit 4238b53

Browse files
committed
Fix visionos compilation
1 parent 2512148 commit 4238b53

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Sources/Examples/SwiftUI Examples/GeofencingPlayground.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,10 @@ private func requestNotificationPermission() {
265265
}
266266

267267
private func requestLocationAuthorization() {
268+
#if !os(visionOS)
268269
CLLocationManager().requestAlwaysAuthorization()
269270
print("Location request finished.")
271+
#endif
270272
}
271273

272274
private extension Turf.Feature {

xcodegen/Examples.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ targets:
1919
- path: ../Sources/Examples
2020
excludes:
2121
- VisionOSMain.swift
22+
- "Extensions/**"
2223
- "SwiftUI Examples/**"
2324
- "All Examples/Sample Data/**"
2425
- "Assets.xcassets/**"
@@ -30,6 +31,7 @@ targets:
3031
- path: ../Sources/Examples
3132
includes:
3233
- "SwiftUI Examples/**"
34+
- "Extensions/**"
3335
- "All Examples/Sample Data/**"
3436
- "Assets.xcassets/**"
3537
# destinationFilters: [iOS, visionOS]

0 commit comments

Comments
 (0)