ARKit
The component for adding an augmented reality (AR) experience to your article.
Declaration
object ARKitProperties
| Name | Type | Description |
|---|---|---|
caption Required | string | A string that describes the contents of the ARKit stage. The text is used for VoiceOver. For more information about VoiceOver, see the Vision page in Accessibility. |
role Required | string | Always |
URL Required | uri | A valid URL to a Universal Scene Description file (USD) file with extension . |
accessibilityCaption | string | A caption that describes the augmented reality experience. The text is used for VoiceOver. For more information about VoiceOver, see the Vision page in Accessibility. If you don’t provide |
anchor | Anchor | An object that defines vertical alignment with another component. |
animation | (ComponentAnimation | string("none")) | An object that defines an animation you apply to the component. Use the |
behavior | (Behavior | string("none")) | An object that defines Behavior for a component, like Parallax or Springy. Use the |
conditional | (ConditionalComponent | [ConditionalComponent]) | An instance or array of component properties that you can apply conditionally, and the conditions that cause Apple News Format to apply them. |
explicitContent | boolean | This property indicates that the component may contain explicit or graphic content. |
hidden | boolean | A boolean value that determines whether the component is hidden. |
identifier | string | An optional unique identifier for this component. If you use |
layout | (ComponentLayout | string) | An inline If you don’t define |
style | (ComponentStyle | string | string("none")) | An inline Use the |
Mentioned in
Discussion
Augmented reality (AR) creates user experiences that add 2D or 3D elements to the live view from a device’s camera in a way that makes those elements appear to inhabit the real world. ARKit combines device motion tracking, camera scene capture, advanced scene processing, and display conveniences to simplify the task of building an AR experience. See ARKit.
Displaying ARKit content in Apple News requires an iOS or iPadOS device with an A9 or later processor.
Example
{
"components": [
{
"role": "arkit",
"caption": "Lunar Lander",
"URL": "https://example.com/assets/lunar-lander/main.usdz"
}
]
}