Contents

ARKit

The component for adding an augmented reality (AR) experience to your article.

Declaration

object ARKit

Properties

NameTypeDescription
caption Requiredstring

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 Requiredstring

Always arkit for this component.

URL Requireduri

A valid URL to a Universal Scene Description file (USD) file with extension .usdz, beginning with http://, https:// or bundle://.

accessibilityCaptionstring

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 accessibilityCaption, VoiceOver uses the caption value.

anchorAnchor

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 none value for conditional design elements. Adding it here has no effect.

behavior(Behavior | string("none"))

An object that defines Behavior for a component, like Parallax or Springy.

Use the none value for conditional design elements. Adding it here has no effect.

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.

explicitContentboolean

This property indicates that the component may contain explicit or graphic content.

hiddenboolean

A boolean value that determines whether the component is hidden.

identifierstring

An optional unique identifier for this component. If you use identifier, it must be unique across the entire document. You need an identifier for your component if you want to anchor other components to it.

layout(ComponentLayout | string)

An inline ComponentLayout object that contains layout information, or a string reference to a ComponentLayout object that you define at the top level of the document.

If you don’t define layout, size and position are based on various factors, such as the device type, the length of the content, and the role of this component.

style(ComponentStyle | string | string("none"))

An inline ComponentStyle object that defines the appearance of this component, or a string reference to a ComponentStyle object that you define at the top level of the document.

Use the none value for conditional design elements. Adding it here has no effect.

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"
    }
  ]
}