mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
updating sharelinks
This commit is contained in:
4 files changed
+63
-21
No files matched your search
@@ -19,9 +19,10 @@ struct StickerSlackApp: App {
|
||||
WindowGroup {
|
||||
ContentView(emojiHoarder: emojiHoarder, gifhoarder: gifhoarder)
|
||||
.onOpenURL { url in
|
||||
if let imported = EmojiPack(fromShareLink: url) {
|
||||
pack = imported
|
||||
}
|
||||
importingEmojiPack = true
|
||||
pack = EmojiPack(fromShareLink: url)
|
||||
NotificationCenter.default.post(name: .didImportPack, object: pack)
|
||||
}
|
||||
.sheet(isPresented: $importingEmojiPack) {
|
||||
EmojiPackImporterView(emojiHoarder: emojiHoarder, pack: $pack)
|
||||
@@ -29,7 +30,3 @@ struct StickerSlackApp: App {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension Notification.Name {
|
||||
static let didImportPack = Self("didImportNote")
|
||||
}
|
||||