Skip to content

Commit

Permalink
Replace occurrences of VisionOS with visionOS
Browse files Browse the repository at this point in the history
  • Loading branch information
azarovalex committed Feb 3, 2024
1 parent 393dc55 commit 4bd42e0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Work with VisionOS
# Work with visionOS

Use Mapbox Maps in native applications for Apple Vision Pro.

Expand All @@ -10,11 +10,11 @@ Starting from version `11.2.0-beta.1` of Mapbox Maps, you can use the Mapbox Map

- Note: Currently, visionOS is not supported in CocoaPods. Please use SPM or the binary [distribution](https://docs.mapbox.com/ios/maps/guides/install/) of MapboxMaps.

### Make use of Mapbox Maps on VisionOS
### Make use of Mapbox Maps on visionOS

Working with Mapbox Maps on VisionOS is very similar to iOS. As the entry point to the map, you use ``Map`` if your application uses SwiftUI, and ``MapView`` if the application uses UIKit. You can find more information about SwiftUI support in <doc:SwiftUI-User-Guide>.
Working with Mapbox Maps on visionOS is very similar to iOS. As the entry point to the map, you use ``Map`` if your application uses SwiftUI, and ``MapView`` if the application uses UIKit. You can find more information about SwiftUI support in <doc:SwiftUI-User-Guide>.

Most of the Maps SDK's features from iOS are supported on VisionOS out-of-the-box. However, there are some platform limitations discussed below.
Most of the Maps SDK's features from iOS are supported on visionOS out-of-the-box. However, there are some platform limitations discussed below.

### Limitations

Expand Down
2 changes: 1 addition & 1 deletion Sources/MapboxMaps/Foundation/MetalView.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import MetalKit

#if swift(>=5.9) && os(visionOS)
/// Implements analog of MTKView on top of CAMetalLayer. Currently is used only for VisionOS rendering.
/// Implements analog of MTKView on top of CAMetalLayer. Currently is used only for visionOS rendering.
class MetalView: UIView, CoreMetalView {
var presentsWithTransaction: Bool {
get { metalLayer.presentsWithTransaction }
Expand Down
2 changes: 1 addition & 1 deletion Sources/MapboxMaps/Location/LocationManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public final class LocationManager {

/// Sets the custom provider that supply puck with the location and heading data.
///
/// - Note: On VisionOS, the ``AppleLocationProvider`` doesn't implement ``HeadingProvider``.
/// - Note: On visionOS, the ``AppleLocationProvider`` doesn't implement ``HeadingProvider``.
/// If you are using a custom instance of a location provider, override it using the ``LocationManager/override(locationProvider:headingProvider:)-8xcsf`` .
///
/// - Parameters:
Expand Down
2 changes: 1 addition & 1 deletion scripts/api-compatibility-check/breakage_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ Func CameraAnimationsManager.fly(to:duration:completion:) has parameter 2 type c
Func MapboxMap.camera(for:padding:bearing:pitch:maxZoom:offset:) has parameter 1 type change from UIKit.UIEdgeInsets to UIKit.UIEdgeInsets?


// VisionOS support
// visionOS support
Func MapViewMetricsReporter.afterMetalViewDrawCallback(metalView:) has been renamed to Func afterMetalViewDrawCallback()
Func MapViewMetricsReporter.beforeMetalViewDrawCallback(metalView:) has been renamed to Func beforeMetalViewDrawCallback()
Constructor MapOptions.init(constrainMode:viewportMode:orientation:crossSourceCollisions:size:pixelRatio:glyphsRasterizationOptions:) has parameter 5 type change from CoreGraphics.CGFloat to CoreGraphics.CGFloat?
Expand Down

0 comments on commit 4bd42e0

Please sign in to comment.