Try using OpenURLAction: https://developer.apple.com/documentation/swiftui/openurlaction
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: