Skip to content

Commit

Permalink
Fix visionos compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
persidskiy committed Jan 23, 2025
1 parent 2512148 commit 4238b53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Examples/SwiftUI Examples/GeofencingPlayground.swift
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,10 @@ private func requestNotificationPermission() {
}

private func requestLocationAuthorization() {
#if !os(visionOS)
CLLocationManager().requestAlwaysAuthorization()
print("Location request finished.")
#endif
}

private extension Turf.Feature {
Expand Down
2 changes: 2 additions & 0 deletions xcodegen/Examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ targets:
- path: ../Sources/Examples
excludes:
- VisionOSMain.swift
- "Extensions/**"
- "SwiftUI Examples/**"
- "All Examples/Sample Data/**"
- "Assets.xcassets/**"
Expand All @@ -30,6 +31,7 @@ targets:
- path: ../Sources/Examples
includes:
- "SwiftUI Examples/**"
- "Extensions/**"
- "All Examples/Sample Data/**"
- "Assets.xcassets/**"
# destinationFilters: [iOS, visionOS]
Expand Down

0 comments on commit 4238b53

Please sign in to comment.