getMapItem(completionHandler:)
Requests a map item and calls the provided completion handler.
Declaration
func getMapItem(completionHandler: @escaping @MainActor @Sendable (MKMapItem?, (any Error)?) -> Void)var mapItem: MKMapItem { get async throws }Parameters
- completionHandler:
A completion handler the framework calls to indicate the success or failure of the map item request.