<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPointerAccessory/Position-swift.struct/init(offset:angle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So18UIPointerAccessoryC5UIKitE8PositionV6offset5angleAE14CoreFoundation7CGFloatV_AJtcfc"
  },
  "title" : "init(offset:angle:)"
}
-->

# init(offset:angle:)

Creates a custom accessory position with the specified offset and angle.

```
init(offset: CGFloat = Position.defaultOffset, angle: CGFloat = 0)
```

---

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)