Contents

openMaps(with:launchOptions:completionHandler:)

Opens the Maps app using the specified map items and options.

Declaration

class func openMaps(with mapItems: [MKMapItem], launchOptions: [String : Any]? = nil, completionHandler completion: (@Sendable (Bool) -> Void)? = nil)
class func openMaps(with mapItems: [MKMapItem], launchOptions: [String : Any]? = nil) async -> Bool

Parameters

  • mapItems:

    An array of map items to open in the Maps app.

  • launchOptions:

    A dictionary of launch options to pass to the Maps app.

  • completion:

    A completion block the system calls that indicates whether the request was successful.

See Also

Launching the Maps app