Instance Property


A Boolean indicating whether the annotation view is draggable.


var isDraggable: Bool { get set }


Setting this property to true makes an annotation draggable by the user. If true, the associated annotation object must also implement the setCoordinate: method. The default value of this property is false.

Setting this property to true, lets the map view know that the annotation is always draggable. In other words, you cannot conditionalize drag operations by attempting to stop an operation that has already been initiated; doing so can lead to undefined behavior. Once begun, the drag operation should always continue to completion.

See Also

Supporting Drag Operations

func setDragState(MKAnnotationView.DragState, animated: Bool)

Sets the current drag state for the annotation view.

var dragState: MKAnnotationView.DragState

The current drag state of the annotation view.