use deeplink to handle shared content

This commit is contained in:
llcc
2022-05-12 10:14:38 +08:00
committed by Tienson Qin
parent cdd59d259e
commit 58ebc5b4d7
5 changed files with 94 additions and 98 deletions

View File

@@ -44,7 +44,7 @@ class ShareViewController: UIViewController {
value: $0.url?.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) ?? ""),
]
}.flatMap({ $0 })
var urlComps = URLComponents(string: "logseq://")!
var urlComps = URLComponents(string: "logseq://shared?")!
urlComps.queryItems = queryItems
openURL(urlComps.url!)
}