openMaps(with:launchOptions:from:completionHandler:)
Opens the Maps app from a particular scene using the specified map items and options.
Declaration
class func openMaps(with mapItems: [MKMapItem], launchOptions: [String : Any]? = nil, from scene: UIScene?, completionHandler completion: (@Sendable (Bool) -> Void)? = nil)class func openMaps(with mapItems: [MKMapItem], launchOptions: [String : Any]? = nil, from scene: UIScene?) async -> BoolParameters
- mapItems:
An array of map items to open in the Maps app.
- launchOptions:
A dictionary of launch options to pass to the Maps app.
- scene:
The scene where the user interaction takes place.
- completion:
A completion block the system calls that indicates whether the request was successful.