Last active
March 22, 2016 16:13
-
-
Save sketchytech/512d242e38d085ad8648 to your computer and use it in GitHub Desktop.
Apple News Format: Basic Structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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": {} | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.