<!--
{
  "availability" : [
    "Apple News Format: 1.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppleNews",
  "identifier" : "/documentation/AppleNewsFormat/Anchor",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple News Format"
    ],
    "preciseIdentifier" : "data:news_format:Anchor"
  },
  "title" : "Anchor"
}
-->

# Anchor

The object for anchoring one component to another component in your article’s layout.

```
object Anchor
```

## Discussion

Use the `Anchor` object to anchor one component (called the *origin*) to another component (called the *target*). You can use an anchor to align components vertically. For example, you can anchor a `caption` component to a `photo` component and choose whether you want the caption aligned to the top, bottom, or center of the photograph. You can also use an anchor to position a child component within its parent container. For information about using anchors within containers, see <doc://com.apple.applenews/documentation/AppleNews/nesting-components-in-an-article>.

> Note:
> The vertical placement of the anchored components can vary on different devices depending on the size of the display area of the device.

You can use this object in [`Component`](/documentation/AppleNewsFormat/Component).

### Example

```json
{
  "components": [
    {
      "role": "container",
      "layout": {
        "minimumHeight": 100
      },
      "style": {
        "backgroundColor": "goldenrod"
      },
      "components": [
        {
          "role": "title",
          "text": "Article Title",
          "anchor": {
            "targetAnchorPosition": "bottom"
          }
        }
      ]
    }
  ]
}
```

## See Also

  <doc://com.apple.applenews/documentation/AppleNews/creating-a-floating-caption>

  <doc://com.apple.applenews/documentation/AppleNews/creating-an-inset-pull-quote>

  <doc://com.apple.applenews/documentation/AppleNews/creating-an-inset-photo>

  <doc://com.apple.applenews/documentation/AppleNews/creating-a-sidebar>



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)