add app hash url scheme
This commit is contained in:
1 parent
e1089d39d5
commit
d6e736637f
1 file changed
+5
@@ -145,10 +145,15 @@ struct ContentView: View {
|
|||||||
Text("Would you like to download the file \(DownloadManager.getWallpaperNameFromURL(string: downloadURL ?? "/Unknown"))?")
|
Text("Would you like to download the file \(DownloadManager.getWallpaperNameFromURL(string: downloadURL ?? "/Unknown"))?")
|
||||||
}
|
}
|
||||||
.onOpenURL(perform: { url in
|
.onOpenURL(perform: { url in
|
||||||
|
// Download URL
|
||||||
if url.absoluteString.starts(with: "pocketposter://download") {
|
if url.absoluteString.starts(with: "pocketposter://download") {
|
||||||
downloadURL = url.absoluteString.replacingOccurrences(of: "pocketposter://download?url=", with: "")
|
downloadURL = url.absoluteString.replacingOccurrences(of: "pocketposter://download?url=", with: "")
|
||||||
showDownloadAlert = true
|
showDownloadAlert = true
|
||||||
}
|
}
|
||||||
|
// App Hash URL
|
||||||
|
else if url.absoluteString.starts(with: "pocketposter://app-hash?uuid=") {
|
||||||
|
pbHash = url.absoluteString.replacingOccurrences(of: "pocketposter://app-hash?uuid=", with: "")
|
||||||
|
}
|
||||||
else if url.pathExtension == "tendies" {
|
else if url.pathExtension == "tendies" {
|
||||||
if selectedTendies == nil {
|
if selectedTendies == nil {
|
||||||
selectedTendies = [url]
|
selectedTendies = [url]
|
||||||
|
|||||||
Reference in new issue
Block a user