Learn the basics for adding components to your article.
- Apple News Format
- Apple News API
An article can have many types of components, including text, images, social media posts, data tables, and so on. Each component is associated to both a
Component object that determines its placement in an article and a
Component object that determines its appearance.
If you like to treat a set of components as a group, add them to a Container component. See Nesting Components in an Article. Otherwise, place individual components directly into the component's array in ArticleDocument.
The following sample shows three components (a
title component, an
author component, and an
intro component) in a