<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/MarkupAdornment/init(id:anchor:imageConfiguration:dragRegion:scalesWithZoom:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit15MarkupAdornmentV2id6anchor18imageConfiguration10dragRegion14scalesWithZoomAC10Foundation4UUIDV_AC6AnchorVAC05ImageH0VAC04DragJ0VSbtcfc"
  },
  "title" : "init(id:anchor:imageConfiguration:dragRegion:scalesWithZoom:)"
}
-->

# init(id:anchor:imageConfiguration:dragRegion:scalesWithZoom:)

Creates a new markup adornment with the specified configuration.

```
init(id: UUID = UUID(), anchor: MarkupAdornment.Anchor, imageConfiguration: MarkupAdornment.ImageConfiguration = .default, dragRegion: MarkupAdornment.DragRegion = .canvas, scalesWithZoom: Bool = false)
```

## Parameters

`id`

A unique identifier for the adornment. Defaults to a new UUID.

`anchor`

The positioning anchor that determines where the adornment appears.

`imageConfiguration`

The visual configuration for the adornment image. Defaults to a pin icon.

`dragRegion`

The movement constraints for the adornment. Defaults to draggable within the canvas.

`scalesWithZoom`

A Boolean value that indicates whether the adornment scales with the zoom level. Defaults to `false`.

---

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)