mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 20:54:51 +00:00
consolidated emptycollectionview
updated emptycollectionview added a no results view and a hint to start searching downloadedview doesnt work atm emojicollectionview representable and the bare uikit reorging searchview some stuff in emojicollectionview i forgor
This commit is contained in:
15 files changed
+192
-156
No files matched your search
@@ -14,8 +14,8 @@
|
|||||||
A9104C7C2EB3AE6300D160EA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A949B1EF2EA04E8200215164 /* Assets.xcassets */; };
|
A9104C7C2EB3AE6300D160EA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A949B1EF2EA04E8200215164 /* Assets.xcassets */; };
|
||||||
A9104C7F2EB4022500D160EA /* MSSticker.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9104C7D2EB4022500D160EA /* MSSticker.swift */; };
|
A9104C7F2EB4022500D160EA /* MSSticker.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9104C7D2EB4022500D160EA /* MSSticker.swift */; };
|
||||||
A9104C802EB4022500D160EA /* MSSticker.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9104C7D2EB4022500D160EA /* MSSticker.swift */; };
|
A9104C802EB4022500D160EA /* MSSticker.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9104C7D2EB4022500D160EA /* MSSticker.swift */; };
|
||||||
A917BACE2F9B787B008DB31E /* EmojiCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BACD2F9B787B008DB31E /* EmojiCollectionView.swift */; };
|
A917BACE2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BACD2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift */; };
|
||||||
A917BACF2F9B787B008DB31E /* EmojiCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BACD2F9B787B008DB31E /* EmojiCollectionView.swift */; };
|
A917BACF2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BACD2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift */; };
|
||||||
A917BAD12F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */; };
|
A917BAD12F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */; };
|
||||||
A917BAD22F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */; };
|
A917BAD22F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */; };
|
||||||
A921C2DF2ED067BB00E57B1A /* WelcomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */; };
|
A921C2DF2ED067BB00E57B1A /* WelcomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */; };
|
||||||
@@ -54,8 +54,6 @@
|
|||||||
A975F9202FA52B3600A5C62E /* AddToPackMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A975F91F2FA52B3600A5C62E /* AddToPackMenuView.swift */; };
|
A975F9202FA52B3600A5C62E /* AddToPackMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A975F91F2FA52B3600A5C62E /* AddToPackMenuView.swift */; };
|
||||||
A975F9212FA52B3600A5C62E /* AddToPackMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A975F91F2FA52B3600A5C62E /* AddToPackMenuView.swift */; };
|
A975F9212FA52B3600A5C62E /* AddToPackMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A975F91F2FA52B3600A5C62E /* AddToPackMenuView.swift */; };
|
||||||
A9773C2F2EA54AF000F3B753 /* StickerPreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9773C2E2EA54AF000F3B753 /* StickerPreview.swift */; };
|
A9773C2F2EA54AF000F3B753 /* StickerPreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9773C2E2EA54AF000F3B753 /* StickerPreview.swift */; };
|
||||||
A97BFFBC2F9E6092000441E5 /* EmptyEmojiPackView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97BFFBB2F9E6092000441E5 /* EmptyEmojiPackView.swift */; };
|
|
||||||
A97BFFBD2F9E6092000441E5 /* EmptyEmojiPackView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97BFFBB2F9E6092000441E5 /* EmptyEmojiPackView.swift */; };
|
|
||||||
A97BFFBF2F9E745C000441E5 /* EmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */; };
|
A97BFFBF2F9E745C000441E5 /* EmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */; };
|
||||||
A97BFFC02F9E745C000441E5 /* EmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */; };
|
A97BFFC02F9E745C000441E5 /* EmojiCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */; };
|
||||||
A97D3E7E2FA5235300BF3273 /* Haptics in Frameworks */ = {isa = PBXBuildFile; productRef = A97D3E7D2FA5235300BF3273 /* Haptics */; };
|
A97D3E7E2FA5235300BF3273 /* Haptics in Frameworks */ = {isa = PBXBuildFile; productRef = A97D3E7D2FA5235300BF3273 /* Haptics */; };
|
||||||
@@ -72,6 +70,8 @@
|
|||||||
A986A6D12EB659E000B6E0FA /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A986A6C92EB659E000B6E0FA /* MainInterface.storyboard */; };
|
A986A6D12EB659E000B6E0FA /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A986A6C92EB659E000B6E0FA /* MainInterface.storyboard */; };
|
||||||
A98FA65B2FF3B29700D50212 /* EmojiTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */; };
|
A98FA65B2FF3B29700D50212 /* EmojiTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */; };
|
||||||
A98FA65C2FF3B29700D50212 /* EmojiTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */; };
|
A98FA65C2FF3B29700D50212 /* EmojiTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */; };
|
||||||
|
A98FA6612FF3BD5400D50212 /* EmojiCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98FA6602FF3BD5400D50212 /* EmojiCollectionView.swift */; };
|
||||||
|
A98FA6622FF3BD5400D50212 /* EmojiCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98FA6602FF3BD5400D50212 /* EmojiCollectionView.swift */; };
|
||||||
A99589AF2F5E0D83003A4A8C /* image.png in Resources */ = {isa = PBXBuildFile; fileRef = A99589AE2F5E0D83003A4A8C /* image.png */; };
|
A99589AF2F5E0D83003A4A8C /* image.png in Resources */ = {isa = PBXBuildFile; fileRef = A99589AE2F5E0D83003A4A8C /* image.png */; };
|
||||||
A99589B02F5E0D83003A4A8C /* image.png in Resources */ = {isa = PBXBuildFile; fileRef = A99589AE2F5E0D83003A4A8C /* image.png */; };
|
A99589B02F5E0D83003A4A8C /* image.png in Resources */ = {isa = PBXBuildFile; fileRef = A99589AE2F5E0D83003A4A8C /* image.png */; };
|
||||||
A99589B12F5E0D83003A4A8C /* image.png in Resources */ = {isa = PBXBuildFile; fileRef = A99589AE2F5E0D83003A4A8C /* image.png */; };
|
A99589B12F5E0D83003A4A8C /* image.png in Resources */ = {isa = PBXBuildFile; fileRef = A99589AE2F5E0D83003A4A8C /* image.png */; };
|
||||||
@@ -199,7 +199,7 @@
|
|||||||
A9104C722EB3AE4700D160EA /* Icon.pxd */ = {isa = PBXFileReference; lastKnownFileType = file; path = Icon.pxd; sourceTree = "<group>"; };
|
A9104C722EB3AE4700D160EA /* Icon.pxd */ = {isa = PBXFileReference; lastKnownFileType = file; path = Icon.pxd; sourceTree = "<group>"; };
|
||||||
A9104C732EB3AE4700D160EA /* StickerSlack.icon */ = {isa = PBXFileReference; lastKnownFileType = folder.iconcomposer.icon; path = StickerSlack.icon; sourceTree = "<group>"; };
|
A9104C732EB3AE4700D160EA /* StickerSlack.icon */ = {isa = PBXFileReference; lastKnownFileType = folder.iconcomposer.icon; path = StickerSlack.icon; sourceTree = "<group>"; };
|
||||||
A9104C7D2EB4022500D160EA /* MSSticker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSSticker.swift; sourceTree = "<group>"; };
|
A9104C7D2EB4022500D160EA /* MSSticker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MSSticker.swift; sourceTree = "<group>"; };
|
||||||
A917BACD2F9B787B008DB31E /* EmojiCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiCollectionView.swift; sourceTree = "<group>"; };
|
A917BACD2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiCollectionViewRepresentable.swift; sourceTree = "<group>"; };
|
||||||
A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlainEmojiCollectionViewCell.swift; sourceTree = "<group>"; };
|
A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlainEmojiCollectionViewCell.swift; sourceTree = "<group>"; };
|
||||||
A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeView.swift; sourceTree = "<group>"; };
|
A921C2DE2ED067BB00E57B1A /* WelcomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeView.swift; sourceTree = "<group>"; };
|
||||||
A924C3712EA9127200F20781 /* Emoji.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Emoji.swift; sourceTree = "<group>"; };
|
A924C3712EA9127200F20781 /* Emoji.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Emoji.swift; sourceTree = "<group>"; };
|
||||||
@@ -227,7 +227,6 @@
|
|||||||
A975F9182FA38C8D00A5C62E /* EmojiPackGridView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackGridView.swift; sourceTree = "<group>"; };
|
A975F9182FA38C8D00A5C62E /* EmojiPackGridView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackGridView.swift; sourceTree = "<group>"; };
|
||||||
A975F91F2FA52B3600A5C62E /* AddToPackMenuView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddToPackMenuView.swift; sourceTree = "<group>"; };
|
A975F91F2FA52B3600A5C62E /* AddToPackMenuView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddToPackMenuView.swift; sourceTree = "<group>"; };
|
||||||
A9773C2E2EA54AF000F3B753 /* StickerPreview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerPreview.swift; sourceTree = "<group>"; };
|
A9773C2E2EA54AF000F3B753 /* StickerPreview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerPreview.swift; sourceTree = "<group>"; };
|
||||||
A97BFFBB2F9E6092000441E5 /* EmptyEmojiPackView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyEmojiPackView.swift; sourceTree = "<group>"; };
|
|
||||||
A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiCollectionViewCell.swift; sourceTree = "<group>"; };
|
A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiCollectionViewCell.swift; sourceTree = "<group>"; };
|
||||||
A986A6AD2EB658DF00B6E0FA /* StickerSlackiMessageApp.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = StickerSlackiMessageApp.appex; sourceTree = BUILT_PRODUCTS_DIR; };
|
A986A6AD2EB658DF00B6E0FA /* StickerSlackiMessageApp.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = StickerSlackiMessageApp.appex; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
A986A6C62EB659E000B6E0FA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
A986A6C62EB659E000B6E0FA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
@@ -236,6 +235,7 @@
|
|||||||
A986A6CA2EB659E000B6E0FA /* MessagesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessagesViewController.swift; sourceTree = "<group>"; };
|
A986A6CA2EB659E000B6E0FA /* MessagesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessagesViewController.swift; sourceTree = "<group>"; };
|
||||||
A986A6CB2EB659E000B6E0FA /* StickerBrowserDataSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerBrowserDataSource.swift; sourceTree = "<group>"; };
|
A986A6CB2EB659E000B6E0FA /* StickerBrowserDataSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StickerBrowserDataSource.swift; sourceTree = "<group>"; };
|
||||||
A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiTableView.swift; sourceTree = "<group>"; };
|
A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiTableView.swift; sourceTree = "<group>"; };
|
||||||
|
A98FA6602FF3BD5400D50212 /* EmojiCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiCollectionView.swift; sourceTree = "<group>"; };
|
||||||
A99589AE2F5E0D83003A4A8C /* image.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image.png; sourceTree = "<group>"; };
|
A99589AE2F5E0D83003A4A8C /* image.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image.png; sourceTree = "<group>"; };
|
||||||
A995D95A2F6EBBDD0043E5F5 /* TestStructures.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestStructures.swift; sourceTree = "<group>"; };
|
A995D95A2F6EBBDD0043E5F5 /* TestStructures.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestStructures.swift; sourceTree = "<group>"; };
|
||||||
A9A7A43E2F6835F800BB84C6 /* Trending.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Trending.swift; sourceTree = "<group>"; };
|
A9A7A43E2F6835F800BB84C6 /* Trending.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Trending.swift; sourceTree = "<group>"; };
|
||||||
@@ -350,7 +350,6 @@
|
|||||||
A9CD6C372EDDE37500B7F421 /* EmojiPackManager.swift */,
|
A9CD6C372EDDE37500B7F421 /* EmojiPackManager.swift */,
|
||||||
A9F7B37F2F8951210071F198 /* EmojiPackImporterView.swift */,
|
A9F7B37F2F8951210071F198 /* EmojiPackImporterView.swift */,
|
||||||
A9C52F6E2F89A22000078588 /* Wiggle.metal */,
|
A9C52F6E2F89A22000078588 /* Wiggle.metal */,
|
||||||
A97BFFBB2F9E6092000441E5 /* EmptyEmojiPackView.swift */,
|
|
||||||
A975F9182FA38C8D00A5C62E /* EmojiPackGridView.swift */,
|
A975F9182FA38C8D00A5C62E /* EmojiPackGridView.swift */,
|
||||||
);
|
);
|
||||||
path = EmojiPacks;
|
path = EmojiPacks;
|
||||||
@@ -446,8 +445,8 @@
|
|||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */,
|
A98FA65A2FF3B29700D50212 /* EmojiTableView.swift */,
|
||||||
A9C52F782F89BB0800078588 /* EmojiTableViewCell.swift */,
|
|
||||||
A9EB72382EB93FDB00658CEB /* EmojiTableViewRepresentable.swift */,
|
A9EB72382EB93FDB00658CEB /* EmojiTableViewRepresentable.swift */,
|
||||||
|
A9C52F782F89BB0800078588 /* EmojiTableViewCell.swift */,
|
||||||
);
|
);
|
||||||
path = TableView;
|
path = TableView;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -455,7 +454,8 @@
|
|||||||
A94F3E642F9E385300FA6995 /* CollectionView */ = {
|
A94F3E642F9E385300FA6995 /* CollectionView */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
A917BACD2F9B787B008DB31E /* EmojiCollectionView.swift */,
|
A98FA6602FF3BD5400D50212 /* EmojiCollectionView.swift */,
|
||||||
|
A917BACD2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift */,
|
||||||
A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */,
|
A917BAD02F9B7B68008DB31E /* PlainEmojiCollectionViewCell.swift */,
|
||||||
A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */,
|
A97BFFBE2F9E745C000441E5 /* EmojiCollectionViewCell.swift */,
|
||||||
);
|
);
|
||||||
@@ -721,7 +721,6 @@
|
|||||||
A9A7A43F2F6835F800BB84C6 /* Trending.swift in Sources */,
|
A9A7A43F2F6835F800BB84C6 /* Trending.swift in Sources */,
|
||||||
A9A7A4422F68360200BB84C6 /* GifObject.swift in Sources */,
|
A9A7A4422F68360200BB84C6 /* GifObject.swift in Sources */,
|
||||||
A97322A62FA8CA2B004B657D /* JumboMojiTestView.swift in Sources */,
|
A97322A62FA8CA2B004B657D /* JumboMojiTestView.swift in Sources */,
|
||||||
A97BFFBC2F9E6092000441E5 /* EmptyEmojiPackView.swift in Sources */,
|
|
||||||
A975F9192FA38C8D00A5C62E /* EmojiPackGridView.swift in Sources */,
|
A975F9192FA38C8D00A5C62E /* EmojiPackGridView.swift in Sources */,
|
||||||
A957C1772ECD008E00EA3EE9 /* Bundle.swift in Sources */,
|
A957C1772ECD008E00EA3EE9 /* Bundle.swift in Sources */,
|
||||||
A957C17F2ECFAA1100EA3EE9 /* GifView.swift in Sources */,
|
A957C17F2ECFAA1100EA3EE9 /* GifView.swift in Sources */,
|
||||||
@@ -758,7 +757,8 @@
|
|||||||
A9773C2F2EA54AF000F3B753 /* StickerPreview.swift in Sources */,
|
A9773C2F2EA54AF000F3B753 /* StickerPreview.swift in Sources */,
|
||||||
A9BE30F02F5B004800A57668 /* GifHoarder.swift in Sources */,
|
A9BE30F02F5B004800A57668 /* GifHoarder.swift in Sources */,
|
||||||
A9BE30F22F5B004E00A57668 /* Gif.swift in Sources */,
|
A9BE30F22F5B004E00A57668 /* Gif.swift in Sources */,
|
||||||
A917BACF2F9B787B008DB31E /* EmojiCollectionView.swift in Sources */,
|
A917BACF2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift in Sources */,
|
||||||
|
A98FA6612FF3BD5400D50212 /* EmojiCollectionView.swift in Sources */,
|
||||||
A9BE30EC2F5AFE1E00A57668 /* StickerType.swift in Sources */,
|
A9BE30EC2F5AFE1E00A57668 /* StickerType.swift in Sources */,
|
||||||
A9A7A4482F68361200BB84C6 /* Meta.swift in Sources */,
|
A9A7A4482F68361200BB84C6 /* Meta.swift in Sources */,
|
||||||
A995D95C2F6EBBDD0043E5F5 /* TestStructures.swift in Sources */,
|
A995D95C2F6EBBDD0043E5F5 /* TestStructures.swift in Sources */,
|
||||||
@@ -845,9 +845,9 @@
|
|||||||
A9CD6C362EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */,
|
A9CD6C362EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */,
|
||||||
A9EB72472EB948C400658CEB /* StickerRow.swift in Sources */,
|
A9EB72472EB948C400658CEB /* StickerRow.swift in Sources */,
|
||||||
A9CD6C392EDDE37500B7F421 /* EmojiPackManager.swift in Sources */,
|
A9CD6C392EDDE37500B7F421 /* EmojiPackManager.swift in Sources */,
|
||||||
A97BFFBD2F9E6092000441E5 /* EmptyEmojiPackView.swift in Sources */,
|
|
||||||
A955B3F62EC22EE900E1732D /* SearchView.swift in Sources */,
|
A955B3F62EC22EE900E1732D /* SearchView.swift in Sources */,
|
||||||
A97322A52FA8CA2B004B657D /* JumboMojiTestView.swift in Sources */,
|
A97322A52FA8CA2B004B657D /* JumboMojiTestView.swift in Sources */,
|
||||||
|
A98FA6622FF3BD5400D50212 /* EmojiCollectionView.swift in Sources */,
|
||||||
A9BDEADF2F82BC93002798DF /* NoStickersView.swift in Sources */,
|
A9BDEADF2F82BC93002798DF /* NoStickersView.swift in Sources */,
|
||||||
A97BFFC02F9E745C000441E5 /* EmojiCollectionViewCell.swift in Sources */,
|
A97BFFC02F9E745C000441E5 /* EmojiCollectionViewCell.swift in Sources */,
|
||||||
A9B9A8322EB2CD29004C9245 /* SlackResponse.swift in Sources */,
|
A9B9A8322EB2CD29004C9245 /* SlackResponse.swift in Sources */,
|
||||||
@@ -855,7 +855,7 @@
|
|||||||
A921C2E02ED067BB00E57B1A /* WelcomeView.swift in Sources */,
|
A921C2E02ED067BB00E57B1A /* WelcomeView.swift in Sources */,
|
||||||
A9B9A82E2EB2CCBE004C9245 /* StickerSlackTests.swift in Sources */,
|
A9B9A82E2EB2CCBE004C9245 /* StickerSlackTests.swift in Sources */,
|
||||||
A9A7A44F2F68383900BB84C6 /* GiphyImages.swift in Sources */,
|
A9A7A44F2F68383900BB84C6 /* GiphyImages.swift in Sources */,
|
||||||
A917BACE2F9B787B008DB31E /* EmojiCollectionView.swift in Sources */,
|
A917BACE2F9B787B008DB31E /* EmojiCollectionViewRepresentable.swift in Sources */,
|
||||||
A9BE30F32F5B004E00A57668 /* Gif.swift in Sources */,
|
A9BE30F32F5B004E00A57668 /* Gif.swift in Sources */,
|
||||||
A9A7A44C2F6837A800BB84C6 /* GiphyUser.swift in Sources */,
|
A9A7A44C2F6837A800BB84C6 /* GiphyUser.swift in Sources */,
|
||||||
A9B9A8312EB2CD14004C9245 /* FilterCategory.swift in Sources */,
|
A9B9A8312EB2CD14004C9245 /* FilterCategory.swift in Sources */,
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import SwiftUI
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
@main
|
@main
|
||||||
class AirAPApp: UIResponder, UIApplicationDelegate {
|
class StickerSlackApp: UIResponder, UIApplicationDelegate {
|
||||||
var window: UIWindow?
|
var window: UIWindow?
|
||||||
|
|
||||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]?) -> Bool {
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]?) -> Bool {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ struct DownloadedView: View {
|
|||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
|
|
||||||
EmojiCollectionView(
|
EmojiCollectionViewRepresentable(
|
||||||
hoarder: emojiHoarder,
|
hoarder: emojiHoarder,
|
||||||
items: emojiHoarder.downloadedStickersArr,
|
items: emojiHoarder.downloadedStickersArr,
|
||||||
width: 75,
|
width: 75,
|
||||||
|
|||||||
@@ -58,7 +58,11 @@ struct EmojiPackDetailView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if pack.items.isEmpty {
|
if pack.items.isEmpty {
|
||||||
EmptyEmojiPackView()
|
EmptyCollectionView(
|
||||||
|
title: "No Emoji",
|
||||||
|
details: "Add emojis to this pack by editing it using the pencil button in the toolbar.",
|
||||||
|
systemImage: "exclamationmark.triangle.fill"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if useSwiftUIGrid {
|
if useSwiftUIGrid {
|
||||||
@@ -68,7 +72,7 @@ struct EmojiPackDetailView: View {
|
|||||||
edit: $edit
|
edit: $edit
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
EmojiCollectionView(
|
EmojiCollectionViewRepresentable(
|
||||||
hoarder: hoarder,
|
hoarder: hoarder,
|
||||||
items: pack.items,
|
items: pack.items,
|
||||||
width: 75,
|
width: 75,
|
||||||
|
|||||||
@@ -14,14 +14,16 @@ struct EmojiPackManager: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationView2 {
|
NavigationView2 {
|
||||||
List {
|
VStack {
|
||||||
if hoarder.emojiPacks.isEmpty {
|
if hoarder.emojiPacks.isEmpty {
|
||||||
EmptyCollectionView(
|
EmptyCollectionView(
|
||||||
title: "No Emoji Packs",
|
title: "No Emoji Packs",
|
||||||
details: "Create one using the button in the toolbar.",
|
details: "Create one using the button in the toolbar.",
|
||||||
systemImage: "square.stack.3d.up.slash"
|
systemImage: "square.stack.3d.up.slash"
|
||||||
)
|
)
|
||||||
}
|
Spacer()
|
||||||
|
} else {
|
||||||
|
List {
|
||||||
ForEach($hoarder.emojiPacks) { $pack in
|
ForEach($hoarder.emojiPacks) { $pack in
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
EmojiPackDetailView(hoarder: hoarder, pack: $pack, useSwiftUIGrid: useSwiftUIGrid)
|
EmojiPackDetailView(hoarder: hoarder, pack: $pack, useSwiftUIGrid: useSwiftUIGrid)
|
||||||
@@ -32,7 +34,7 @@ struct EmojiPackManager: View {
|
|||||||
Button {
|
Button {
|
||||||
hoarder.removeEmojiPack(pack)
|
hoarder.removeEmojiPack(pack)
|
||||||
} label: {
|
} label: {
|
||||||
Label("Delete", systemImage: "trash")
|
Label("", systemImage: "trash")
|
||||||
}
|
}
|
||||||
.tint(.red)
|
.tint(.red)
|
||||||
if #available(iOS 16, *) {
|
if #available(iOS 16, *) {
|
||||||
@@ -41,7 +43,7 @@ struct EmojiPackManager: View {
|
|||||||
Button {
|
Button {
|
||||||
showShareSheet.toggle()
|
showShareSheet.toggle()
|
||||||
} label: {
|
} label: {
|
||||||
Label("Share", systemImage: "square.and.arrow.up")
|
Label("", systemImage: "square.and.arrow.up")
|
||||||
}
|
}
|
||||||
.sheet(isPresented: $showShareSheet) {
|
.sheet(isPresented: $showShareSheet) {
|
||||||
ShareSheet(activityItems: [pack.shareLink()])
|
ShareSheet(activityItems: [pack.shareLink()])
|
||||||
@@ -50,6 +52,8 @@ struct EmojiPackManager: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.navigationTitle("Emoji Packs")
|
.navigationTitle("Emoji Packs")
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
.toolbar {
|
.toolbar {
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
//
|
|
||||||
// EmptyEmojiPackView.swift
|
|
||||||
// StickerSlack
|
|
||||||
//
|
|
||||||
// Created by neon443 on 26/04/2026.
|
|
||||||
//
|
|
||||||
|
|
||||||
import SwiftUI
|
|
||||||
|
|
||||||
struct EmptyEmojiPackView: View {
|
|
||||||
var body: some View {
|
|
||||||
VStack(alignment: .center) {
|
|
||||||
HStack {
|
|
||||||
Image(systemName: "exclamationmark.triangle.fill")
|
|
||||||
Text("No Emoji")
|
|
||||||
.bold()
|
|
||||||
Image(systemName: "exclamationmark.triangle.fill")
|
|
||||||
}
|
|
||||||
.foregroundStyle(.yellow)
|
|
||||||
Text("This pack contians no emojis")
|
|
||||||
.padding(.vertical, 5)
|
|
||||||
.foregroundStyle(.foreground)
|
|
||||||
Text("Add emojis to this pack by editing it using the pencil button in the toolbar.")
|
|
||||||
Text("You can also change the name and description by tapping it in edit mode.")
|
|
||||||
.padding(.vertical, 5)
|
|
||||||
}
|
|
||||||
.transition(.scale)
|
|
||||||
.foregroundStyle(.gray)
|
|
||||||
.multilineTextAlignment(.center)
|
|
||||||
.frame(maxWidth: .infinity)
|
|
||||||
.padding()
|
|
||||||
.background {
|
|
||||||
Color.accentColor.opacity(0.2)
|
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 10))
|
|
||||||
.blur(radius: 5)
|
|
||||||
.shadow(color: .accentColor, radius: 5)
|
|
||||||
}
|
|
||||||
.padding()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#Preview {
|
|
||||||
EmptyEmojiPackView()
|
|
||||||
}
|
|
||||||
@@ -28,7 +28,7 @@ struct JumboMojiTestView: View {
|
|||||||
}
|
}
|
||||||
ForEach(jumboMoji, id: \.self) { jumboMoji in
|
ForEach(jumboMoji, id: \.self) { jumboMoji in
|
||||||
HStack {
|
HStack {
|
||||||
EmojiCollectionView(
|
EmojiCollectionViewRepresentable(
|
||||||
hoarder: hoarder,
|
hoarder: hoarder,
|
||||||
items: jumboMoji.items,
|
items: jumboMoji.items,
|
||||||
width: CGFloat(jumboMoji.width),
|
width: CGFloat(jumboMoji.width),
|
||||||
|
|||||||
@@ -13,30 +13,38 @@ struct EmptyCollectionView: View {
|
|||||||
@State var systemImage: String
|
@State var systemImage: String
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack {
|
VStack {
|
||||||
Color.accentColor
|
|
||||||
.opacity(0.4)
|
|
||||||
.padding(.horizontal, -15)
|
|
||||||
.padding(.vertical, -15)
|
|
||||||
.blur(radius: 5)
|
|
||||||
HStack {
|
HStack {
|
||||||
Image(systemName: systemImage)
|
Image(systemName: systemImage)
|
||||||
.resizable()
|
.resizable()
|
||||||
.scaledToFit()
|
.scaledToFit()
|
||||||
.frame(width: 25)
|
.frame(width: 25)
|
||||||
|
.padding(.horizontal, 5)
|
||||||
Text(title)
|
Text(title)
|
||||||
.bold()
|
.bold()
|
||||||
.font(.title3)
|
.font(.title3)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.listRowSeparator(.hidden)
|
|
||||||
HStack {
|
HStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
Text(details)
|
Text(details)
|
||||||
.multilineTextAlignment(.center)
|
.multilineTextAlignment(.center)
|
||||||
|
.foregroundStyle(.gray)
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.listRowSeparator(.hidden)
|
||||||
|
.transition(.scale)
|
||||||
|
.multilineTextAlignment(.center)
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
|
.padding()
|
||||||
|
.background {
|
||||||
|
Color.accentColor.opacity(0.2)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 10))
|
||||||
|
.blur(radius: 5)
|
||||||
|
.shadow(color: .accentColor, radius: 5)
|
||||||
|
}
|
||||||
|
.padding()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Preview {
|
#Preview {
|
||||||
|
|||||||
@@ -57,20 +57,55 @@ struct SearchView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack {
|
VStack {
|
||||||
if fromPackEditor {
|
if searchTerm.isEmpty {
|
||||||
EmojiCollectionView(
|
EmptyCollectionView(title: "Search", details: "", systemImage: "magnifyingglass")
|
||||||
|
.frame(maxHeight: 100)
|
||||||
|
.padding()
|
||||||
|
Spacer()
|
||||||
|
} else if searchResult.isEmpty {
|
||||||
|
EmptyCollectionView(title: "No Results", details: "Try a new search", systemImage: "exclamationmark.magnifyingglass")
|
||||||
|
.frame(maxHeight: 100)
|
||||||
|
.padding()
|
||||||
|
Spacer()
|
||||||
|
} else if fromPackEditor {
|
||||||
|
EmojiCollectionViewRepresentable(
|
||||||
hoarder: hoarder,
|
hoarder: hoarder,
|
||||||
items: searchResult,
|
items: searchResult,
|
||||||
width: 75,
|
width: 75,
|
||||||
style: .plainWithLabel,
|
style: .plainWithLabel,
|
||||||
onTapCallback: { callback($0)
|
onTapCallback: { callback($0)
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
EmojiTableViewRepresentable(hoarder: hoarder, items: searchResult)
|
||||||
|
}
|
||||||
|
|
||||||
|
if fromPackEditor {
|
||||||
|
if searchResult.isEmpty {
|
||||||
|
EmptyCollectionView(title: "No Results", details: "Try a new search", systemImage: "exclamationmark.magnifyingglass")
|
||||||
|
.frame(maxHeight: 100)
|
||||||
|
.padding()
|
||||||
|
Spacer()
|
||||||
|
} else {
|
||||||
|
EmojiCollectionViewRepresentable(
|
||||||
|
hoarder: hoarder,
|
||||||
|
items: searchResult,
|
||||||
|
width: 75,
|
||||||
|
style: .plainWithLabel,
|
||||||
|
onTapCallback: { callback($0)
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
switch stickerType {
|
switch stickerType {
|
||||||
case .slackEmoji:
|
case .slackEmoji:
|
||||||
Text("\(searchResult.count)")
|
Text("\(searchResult.count)")
|
||||||
|
if searchResult.isEmpty {
|
||||||
|
EmptyCollectionView(title: "No Results", details: "Try a new search", systemImage: "exclamationmark.magnifyingglass")
|
||||||
|
.frame(maxHeight: 100)
|
||||||
|
.padding()
|
||||||
|
Spacer()
|
||||||
|
} else {
|
||||||
EmojiTableViewRepresentable(hoarder: hoarder, items: searchResult)
|
EmojiTableViewRepresentable(hoarder: hoarder, items: searchResult)
|
||||||
.padding(.bottom, 10)
|
}
|
||||||
case .giphyGifs:
|
case .giphyGifs:
|
||||||
Text("uhh")
|
Text("uhh")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ struct SettingsView: View {
|
|||||||
Label("jumbomoji search", systemImage: "text.page.badge.magnifyingglass")
|
Label("jumbomoji search", systemImage: "text.page.badge.magnifyingglass")
|
||||||
}
|
}
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
EmojiCollectionView(
|
EmojiCollectionViewRepresentable(
|
||||||
hoarder: hoarder,
|
hoarder: hoarder,
|
||||||
items: [
|
items: [
|
||||||
"btn-3kh0-1",
|
"btn-3kh0-1",
|
||||||
@@ -147,7 +147,7 @@ struct SettingsView: View {
|
|||||||
Label("jumbomoji", systemImage: "square.split.2x2")
|
Label("jumbomoji", systemImage: "square.split.2x2")
|
||||||
}
|
}
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
EmojiCollectionView(
|
EmojiCollectionViewRepresentable(
|
||||||
hoarder: hoarder,
|
hoarder: hoarder,
|
||||||
items: hoarder.emojis.prefix(10000).map { $0.name },
|
items: hoarder.emojis.prefix(10000).map { $0.name },
|
||||||
width: 10,
|
width: 10,
|
||||||
|
|||||||
@@ -7,79 +7,9 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import UIKit
|
import UIKit
|
||||||
import SwiftUI
|
|
||||||
import Haptics
|
import Haptics
|
||||||
|
|
||||||
struct EmojiCollectionView: UIViewRepresentable {
|
final class EmojiCollectionView: UICollectionViewController, UICollectionViewDelegateFlowLayout {
|
||||||
let hoarder: EmojiHoarder
|
|
||||||
let items: [String]
|
|
||||||
let width: CGFloat
|
|
||||||
let style: EmojiCollectionView.Style
|
|
||||||
var edit: Bool?
|
|
||||||
var onRemoveSUI: ((String) -> Void)?
|
|
||||||
var onTapCallback: ((String) -> Void)?
|
|
||||||
|
|
||||||
func makeUIView(context: Context) -> UICollectionView {
|
|
||||||
let collectionView = context.coordinator as UICollectionViewController
|
|
||||||
collectionView.collectionView.register(PlainEmojiCollectionViewCell.self, forCellWithReuseIdentifier: "plain")
|
|
||||||
collectionView.collectionView.register(EmojiCollectionViewCell.self, forCellWithReuseIdentifier: "full")
|
|
||||||
collectionView.collectionView.delegate = context.coordinator
|
|
||||||
return collectionView.collectionView
|
|
||||||
}
|
|
||||||
|
|
||||||
func updateUIView(_ uiView: UICollectionView, context: Context) {
|
|
||||||
context.coordinator.hoarder = hoarder
|
|
||||||
context.coordinator.onRemove = onRemoveSUI
|
|
||||||
context.coordinator.onTap = onTapCallback
|
|
||||||
|
|
||||||
context.coordinator.edit = edit
|
|
||||||
if edit ?? false {
|
|
||||||
context.coordinator.startAnimating()
|
|
||||||
} else {
|
|
||||||
context.coordinator.stopAnimating()
|
|
||||||
}
|
|
||||||
|
|
||||||
for cell in uiView.visibleCells {
|
|
||||||
if let cell = cell as? EmojiCollectionViewCell {
|
|
||||||
cell.setEdit(to: edit)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// if items != context.coordinator.items {
|
|
||||||
// context.coordinator.items = items
|
|
||||||
// uiView.reloadData()
|
|
||||||
// }
|
|
||||||
let itemsBefore = context.coordinator.items
|
|
||||||
let itemsAfter = items
|
|
||||||
context.coordinator.items = items
|
|
||||||
Task.detached {
|
|
||||||
//if its being cleared or adding 10k+
|
|
||||||
guard !itemsAfter.isEmpty && itemsAfter.count-itemsBefore.count < 10_000 else {
|
|
||||||
await context.coordinator.instantApplySnapshot()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
await context.coordinator.applySnapshot(animated: true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func makeCoordinator() -> Coordinator {
|
|
||||||
Coordinator(
|
|
||||||
hoarder: hoarder,
|
|
||||||
items: items,
|
|
||||||
width: width,
|
|
||||||
style: style
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
enum Style {
|
|
||||||
case plain
|
|
||||||
case plainWithLabel
|
|
||||||
case plainWithMenu
|
|
||||||
case full
|
|
||||||
case jumboMoji
|
|
||||||
}
|
|
||||||
|
|
||||||
final class Coordinator: UICollectionViewController, UICollectionViewDelegateFlowLayout {
|
|
||||||
var hoarder: EmojiHoarder
|
var hoarder: EmojiHoarder
|
||||||
var items: [String]
|
var items: [String]
|
||||||
var width: CGFloat
|
var width: CGFloat
|
||||||
@@ -124,12 +54,53 @@ struct EmojiCollectionView: UIViewRepresentable {
|
|||||||
collectionView.contentInset = UIEdgeInsets(top: 16, left: 16, bottom: 16, right: 16)
|
collectionView.contentInset = UIEdgeInsets(top: 16, left: 16, bottom: 16, right: 16)
|
||||||
}
|
}
|
||||||
layout.estimatedItemSize = UICollectionViewFlowLayout.automaticSize
|
layout.estimatedItemSize = UICollectionViewFlowLayout.automaticSize
|
||||||
|
|
||||||
|
refreshUI(edit: false, with: items)
|
||||||
}
|
}
|
||||||
|
|
||||||
required init?(coder: NSCoder) {
|
required init?(coder: NSCoder) {
|
||||||
fatalError("init(coder:) has not been implemented")
|
fatalError("init(coder:) has not been implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum Style {
|
||||||
|
case plain
|
||||||
|
case plainWithLabel
|
||||||
|
case plainWithMenu
|
||||||
|
case full
|
||||||
|
case jumboMoji
|
||||||
|
}
|
||||||
|
|
||||||
|
override func viewWillLayoutSubviews() {
|
||||||
|
self.refreshUI(edit: edit, with: items)
|
||||||
|
}
|
||||||
|
|
||||||
|
func refreshUI(edit: Bool?, with items: [String]) {
|
||||||
|
self.edit = edit
|
||||||
|
if edit ?? false {
|
||||||
|
self.startAnimating()
|
||||||
|
} else {
|
||||||
|
self.stopAnimating()
|
||||||
|
}
|
||||||
|
|
||||||
|
for cell in collectionView.visibleCells {
|
||||||
|
if let cell = cell as? EmojiCollectionViewCell {
|
||||||
|
cell.setEdit(to: edit)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let itemsBefore = self.items
|
||||||
|
let itemsAfter = items
|
||||||
|
self.items = items
|
||||||
|
Task.detached {
|
||||||
|
//if its being cleared or adding 10k+
|
||||||
|
guard !itemsAfter.isEmpty && itemsAfter.count-itemsBefore.count < 10_000 else {
|
||||||
|
await self.instantApplySnapshot()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
await self.applySnapshot(animated: true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func makeSnapshot() -> NSDiffableDataSourceSnapshot<Int, String> {
|
func makeSnapshot() -> NSDiffableDataSourceSnapshot<Int, String> {
|
||||||
var snapshot = NSDiffableDataSourceSnapshot<Int, String>()
|
var snapshot = NSDiffableDataSourceSnapshot<Int, String>()
|
||||||
snapshot.appendSections([0])
|
snapshot.appendSections([0])
|
||||||
@@ -271,5 +242,4 @@ struct EmojiCollectionView: UIViewRepresentable {
|
|||||||
return menu
|
return menu
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
//
|
||||||
|
// EmojiCollectionViewRepresentable.swift
|
||||||
|
// StickerSlack
|
||||||
|
//
|
||||||
|
// Created by neon443 on 30/06/2026.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
import UIKit
|
||||||
|
import SwiftUI
|
||||||
|
import Haptics
|
||||||
|
|
||||||
|
struct EmojiCollectionViewRepresentable: UIViewRepresentable {
|
||||||
|
let hoarder: EmojiHoarder
|
||||||
|
let items: [String]
|
||||||
|
let width: CGFloat
|
||||||
|
let style: EmojiCollectionView.Style
|
||||||
|
var edit: Bool?
|
||||||
|
var onRemoveSUI: ((String) -> Void)?
|
||||||
|
var onTapCallback: ((String) -> Void)?
|
||||||
|
|
||||||
|
func makeUIView(context: Context) -> UICollectionView {
|
||||||
|
let collectionView = context.coordinator as UICollectionViewController
|
||||||
|
collectionView.collectionView.register(PlainEmojiCollectionViewCell.self, forCellWithReuseIdentifier: "plain")
|
||||||
|
collectionView.collectionView.register(EmojiCollectionViewCell.self, forCellWithReuseIdentifier: "full")
|
||||||
|
collectionView.collectionView.delegate = context.coordinator
|
||||||
|
return collectionView.collectionView
|
||||||
|
}
|
||||||
|
|
||||||
|
func updateUIView(_ uiView: UICollectionView, context: Context) {
|
||||||
|
context.coordinator.hoarder = hoarder
|
||||||
|
context.coordinator.items = items
|
||||||
|
context.coordinator.edit = edit
|
||||||
|
context.coordinator.onRemove = onRemoveSUI
|
||||||
|
context.coordinator.onTap = onTapCallback
|
||||||
|
uiView.setNeedsLayout()
|
||||||
|
context.coordinator.refreshUI(edit: edit, with: items)
|
||||||
|
}
|
||||||
|
|
||||||
|
func makeCoordinator() -> EmojiCollectionView {
|
||||||
|
EmojiCollectionView(
|
||||||
|
hoarder: hoarder,
|
||||||
|
items: items,
|
||||||
|
width: width,
|
||||||
|
style: style
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -40,10 +40,21 @@ final class TabbedContentView: UITabBarController {
|
|||||||
let packs = UIHostingController(rootView: packsView)
|
let packs = UIHostingController(rootView: packsView)
|
||||||
packs.tabBarItem = UITabBarItem(title: "Packs", image: UIImage(systemName: "square.stack.3d.up.fill"), tag: 1)
|
packs.tabBarItem = UITabBarItem(title: "Packs", image: UIImage(systemName: "square.stack.3d.up.fill"), tag: 1)
|
||||||
|
|
||||||
let downloadedView = DownloadedView(emojiHoarder: emojiHoarder, gifHoarder: gifHoarder)
|
|
||||||
let downloaded = UIHostingController(rootView: downloadedView)
|
let downloadedView = EmojiCollectionView(
|
||||||
|
hoarder: emojiHoarder,
|
||||||
|
items: emojiHoarder.downloadedStickersArr,
|
||||||
|
width: 75,
|
||||||
|
style: .plainWithMenu
|
||||||
|
)
|
||||||
|
let downloaded = UINavigationController(rootViewController: downloadedView)
|
||||||
|
downloadedView.navigationItem.title = "Downloaded"
|
||||||
downloaded.tabBarItem = UITabBarItem(title: "Downloaded", image: UIImage(systemName: "arrow.down.circle.fill"), tag: 2)
|
downloaded.tabBarItem = UITabBarItem(title: "Downloaded", image: UIImage(systemName: "arrow.down.circle.fill"), tag: 2)
|
||||||
|
|
||||||
|
// let downloadedView = DownloadedView(emojiHoarder: emojiHoarder, gifHoarder: gifHoarder)
|
||||||
|
// let downloaded = UIHostingController(rootView: downloadedView)
|
||||||
|
// downloaded.tabBarItem = UITabBarItem(title: "Downloaded", image: UIImage(systemName: "arrow.down.circle.fill"), tag: 2)
|
||||||
|
|
||||||
let settingsView = SettingsView(hoarder: emojiHoarder)
|
let settingsView = SettingsView(hoarder: emojiHoarder)
|
||||||
let settings = UIHostingController(rootView: settingsView)
|
let settings = UIHostingController(rootView: settingsView)
|
||||||
settings.tabBarItem = UITabBarItem(title: "Settings", image: UIImage(systemName: "gear"), tag: 3)
|
settings.tabBarItem = UITabBarItem(title: "Settings", image: UIImage(systemName: "gear"), tag: 3)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// EmojiTableView.swift
|
// EmojiTableView.swift
|
||||||
// StickerSlack
|
// StickerSlack
|
||||||
//
|
//
|
||||||
// Created by neon443 on 30/06/2026.
|
// Created by neon443 on 03/11/2025.
|
||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
//
|
//
|
||||||
// EmojiTableView.swift
|
// EmojiTableViewRepresentable.swift
|
||||||
// StickerSlack
|
// StickerSlack
|
||||||
//
|
//
|
||||||
// Created by neon443 on 03/11/2025.
|
// Created by neon443 on 30/06/2026.
|
||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|||||||