mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44: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
+376
-340
No files matched your search
@@ -40,10 +40,21 @@ final class TabbedContentView: UITabBarController {
|
||||
let packs = UIHostingController(rootView: packsView)
|
||||
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)
|
||||
|
||||
// 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 settings = UIHostingController(rootView: settingsView)
|
||||
settings.tabBarItem = UITabBarItem(title: "Settings", image: UIImage(systemName: "gear"), tag: 3)
|
||||
|
||||