Learn Courses My Dashboard

Opening Separate App via Button [SwiftUI]

Hi! So I was wondering if there was a way I could open another app by clicking a button in my own app. I’m simply trying to redirect the user to this second app if it’s installed, and, if not, direct them to the app store at the separate app’s page, something similar to the Link() action. How would I go about doing this? Thanks!