Skip to content

Instantly share code, notes, and snippets.

@sketchytech
Last active March 22, 2016 16:13
Show Gist options
  • Select an option

  • Save sketchytech/512d242e38d085ad8648 to your computer and use it in GitHub Desktop.

Select an option

Save sketchytech/512d242e38d085ad8648 to your computer and use it in GitHub Desktop.
Apple News Format: Basic Structure
{
"version": "1.1",
"identifier": "sketchyTech_Demo",
"title": "My First Article",
"language": "en",
"layout": {},
"components": [
{
"role": "title",
"text": "My First Article"
},
{
"role": "body",
"text": "This is just over the minimum amount of JSON required to create a valid article in Apple News Format. If you were to delete the dictionary enclosing this text, you'd be there."
}
],
"componentTextStyles": {}
}
@sketchytech

Copy link
Copy Markdown
Author

To preview Apple News Format files install News Preview.

Note: You'll also need Xcode installed for it to work because it borrows the iOS simulators.

Presented here is a JSON file with the minimum required properties. The components array should have at least one component to be valid but the componentTextStyles dictionary can be left empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment