Environment: OpenURL

@Environment(\.openURL) allows you to open URLs from your SwiftUI views. What is @Environment(\.openURL) ? @Environment(\.openURL) is a property wrapper that provides a way to open URLs in your SwiftUI application. It gives you access to the OpenURL environment value, which you can use to present a URL in the appropriate way for the current platform. struct ContentView: View {…