自分用のメモも兼ねて書きます。
iOS14以降が対象の場合はSwiftUIで単純なリンクを使う場合はLinkビューを使えます。

Link | Apple Developer Documentation
A control for navigating to a URL.
Link("View Our Terms of Service",
destination: URL(string: "https://www.example.com/TOS.html")!)
表示するテキストとURLを設定するだけでOK
Link("メール送信",
destination: URL(string: "mailto:test@test.test")!)
URLの指定でmailtoを指定してやるとメールクライアントで開きます。
簡単なリンクだけならこれでできるので非常に楽です。
コメント