Contents

supportsFrameSemantics(_:)

Checks whether a particular feature is supported.

Declaration

class func supportsFrameSemantics(_ frameSemantics: ARConfiguration.FrameSemantics) -> Bool

Parameters

  • frameSemantics:

    The frame semantics for which to check device support.

Return Value

A boolean value that indicates whether the device supports the argument frame semantics.

Discussion

Call this function before attempting to enable a frame semantic on your app’s configuration. For example, if you call supportsFrameSemantic(.sceneDepth) on ARWorldTrackingConfiguration, the function returns true on devices that support the LiDAR scanner’s depth buffer.

See Also

Enabling frame features