init(id:anchor:imageConfiguration:dragRegion:scalesWithZoom:)
Creates a new markup adornment with the specified configuration.
Declaration
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.