hotfix use custom url scheme to open links if provided

This commit is contained in:
JanNiklas Grabowski
2023-12-22 12:25:59 +01:00
parent 59ee43ed5c
commit 5decccf6cb
18 changed files with 106 additions and 22 deletions

View File

@@ -218,9 +218,8 @@ struct AuthenticationLoginScreen: View {
return
}
let tosURL = URL.init(string: urlString)! // add your link here
if UIApplication.shared.canOpenURL(tosURL) {
UIApplication.shared.open(tosURL)
}
UIApplication.shared.vc_open(tosURL, completionHandler: nil)
}, label: {
Text(BWIL10n.authenticationDataprivacyText)
.font(theme.fonts.footnote)