Instance Property

calloutOffset

The offset (in points) at which to place the callout bubble.

Declaration

var calloutOffset: CGPoint { get set }

Discussion

This property determines the additional distance by which to move the callout bubble. When this property is set to (0, 0), the anchor point of the callout bubble is placed on the top-center point of the annotation view’s frame. Specifying positive offset values moves the callout bubble down and to the right, while specifying negative values moves it up and to the left.

The calloutOffset property is not used in macOS apps. Instead, macOS apps use leftCalloutOffset and rightCalloutOffset.

See Also

Getting and Setting Attributes

var isEnabled: Bool

A Boolean value indicating whether the annotation is enabled.

var image: UIImage?

The image to be displayed by the annotation view.

var isHighlighted: Bool

A Boolean value indicating whether the annotation view is highlighted.

var annotation: MKAnnotation?

The annotation object currently associated with the view.

var centerOffset: CGPoint

The offset (in points) at which to display the view.

var reuseIdentifier: String?

The string that identifies that this annotation view is reusable.