<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/MarkupAdornment/Anchor-swift.struct/location(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit15MarkupAdornmentV6AnchorV8location2inSo7CGPointVSgAA0aC0V_tF"
  },
  "title" : "location(in:)"
}
-->

# location(in:)

Returns the position of this anchor within the specified markup’s coordinate system.

```
func location(in markup: PaperMarkup) -> CGPoint?
```

## Parameters

`markup`

The `PaperMarkup` instance to calculate the location within.

## Return Value

A `CGPoint` representing the anchor’s position in the markup’s coordinate system, or `nil` if the location is unavailable.

---

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)