The visual appearance configuration for a markup adornment.
An `ImageConfiguration` defines the visual appearance of an adornment, including the image source, size, and alignment anchor point for positioning.
Creates an image configuration using a system image.
- Parameters:
- name: The SF Symbol name for the system image.
- tint: The color to apply to the image. Defaults to the system tint color.
- size: The size of the rendered image in points. Defaults to 48x48.
- alignmentAnchor: The offset from the image center for positioning. Defaults to zero.
- Returns: An `ImageConfiguration` for the system image.
Creates an image configuration using a custom image.
- Parameters:
- image: The `UIImage` to display.
- alignmentAnchor: The offset from the image center for positioning. Defaults to zero.
- Returns: An `ImageConfiguration` for the custom image.
get
default
TypeScript
static get default(): MarkupAdornment_ImageConfiguration
Swift declaration
static let `default`: MarkupAdornment.ImageConfiguration
The default image configuration using a pin-shaped system image.