<!--
{
  "availability" : [
    "iOS: 17.5.0 -",
    "iPadOS: 17.5.0 -",
    "macCatalyst: 17.5.0 -",
    "macOS: 14.5.0 -",
    "visionOS: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/PencilHoverPose/anchor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15PencilHoverPoseV6anchorAA9UnitPointVvp"
  },
  "title" : "anchor"
}
-->

# anchor

The location of an Apple Pencil hovering in the area above the view’s
bounds, expressed as a normalized anchor point relative to that view.

```
let anchor: UnitPoint
```

## Discussion

You can pass this anchor point directly to a presentation modifier like
[`popover(isPresented:attachmentAnchor:arrowEdge:content:)`](/documentation/SwiftUI/View/popover(isPresented:attachmentAnchor:arrowEdge:content:)) or use
the [`location`](/documentation/SwiftUI/PencilHoverPose/location) property if you require an absolute point instead.

---

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)