Fixed URL navigation
This commit is contained in:
parent
c0231a4064
commit
5d393c8526
|
@ -65,12 +65,13 @@ extension Navigator {
|
||||||
return OpenURLAction.Result.handled
|
return OpenURLAction.Result.handled
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
guard uni else { return .discarded }
|
||||||
self.presentedSheet = .safari(url: url)
|
self.presentedSheet = .safari(url: url)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print("clicked isn't handled properly")
|
print("clicked isn't handled properly")
|
||||||
|
|
||||||
if url.absoluteString.starts(with: /[a-z]+:\/\//) {
|
if url.absoluteString.starts(with: /[a-z]+:\/\//) && !url.absoluteString.starts(with: /http(s)?:\/\//) {
|
||||||
print("catched 3rd-party SCHEME")
|
print("catched 3rd-party SCHEME")
|
||||||
#if !WIDGET
|
#if !WIDGET
|
||||||
UIApplication.shared.open(url)
|
UIApplication.shared.open(url)
|
||||||
|
|
Loading…
Reference in New Issue