With your SwiftUI applications, you'll want to incorporate a loading view when you are executing asynchronous behavior. To do this easily, we'll wrap a UIActivityIndicatorView inside of a UIViewRepresentable and show it only during directions calculations.