Plan the design for your article and create it in Apple News Format.
- Apple News Format
- Apple News API
When you create an article in Apple News Format, you start by creating a JSON document file. The file contains code that specifies the layout for your article, provides the content, and customizes the look. The file is processed and rendered as an article in Apple News. The following figure shows the basic tasks associated with creating an article.
articledocument file. All article document files must have the name
articleStart by adding the ArticleDocument object and its required properties, or download this sample file. You can use any text editor to edit the code in your
articlefile. See Choose a Text Editor. Create a unique folder to hold the
articlefile and any other files you’ll be publishing with this article, such as image files.
Plan the layout of your article. Decide how many layout columns your design will need. See Planning the Layout for Your Article.
Add components that contain your article’s content. The content of your article—the text, photos, and other information—is contained in an array of components in your
articlefile. Each component has a specific function—for example, a title, a caption, body text, or a video. For an overview of the different kinds of components you can have in your article, see Components; to learn how to add components, see Adding Components.
Add the metadata for your article. See Metadata.
Once your article is finished, you can publish it to Apple News. See Create an Article.