updating sharelinks

This commit is contained in:
Nihaal Sharma committed 2026-04-15 17:45:39 +01:00
1 parent 0b50400598
commit 6671756e62
4 files changed
+63 -21

No files matched your search

+3 -6
View File
@@ -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")
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.