Define the layout of a text component to wrap around another component.
- Apple News Format
- Apple News API
You can wrap the text of one body component around another component by using the
target property of the Anchor object. For example, you can wrap body text around a pull quote. You can include an
Anchor object in a text component to vertically align that component to the position of a text character in a body component. If they also share columns, these components would then overlap. In the case of overlap, the text would automatically wrap around the component that contains the
Consider the following figure:
The article has a 7-column layout.
bodycomponent starts in column 0 and spans 5 columns.
pullquotecomponent starts in column 4 and spans 3 columns.
pullquotecomponent contains an
Anchor object that aligns the pull quote with a character range in the second paragraph of the body component.