LocationPickerVC

public final class LocationPickerVC: UIViewController

The LocationPickerVC class is a sub-class of UIViewController. It is not meant to be sub-classed. Use an instance of this class to easily present or push a view controller for searching and picking a location.

  • The delegate of the LocationPickerVC object.

    Declaration

    Swift

    public weak var pickerDelegate: LocationPickerDelegate?
  • An optional closure that takes an object conforming to MKAnnotation and returns void. This closure is called when the user taps the + button of the callout accessory of an MKAnnotationView.

    Returns

    Void

    Declaration

    Swift

    public var didPick: ((MKAnnotation) -> Void)?

    Return Value

    Void

  • Initializes a LocationPickerVC with an annotation to show on present or push. The default is nil.

    Declaration

    Swift

    public init(with annotation: MKAnnotation? = nil)

    Parameters

    annotation

    An object conforming to MKAnnotation