mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 20:54:51 +00:00
aded mneu ig
This commit is contained in:
2 files changed
+11
-5
No files matched your search
@@ -30,8 +30,8 @@ struct EmojiPackManager: View {
|
|||||||
List(selection: $selection) {
|
List(selection: $selection) {
|
||||||
ForEach($hoarder.emojiPacks, id: \.self) { $pack in
|
ForEach($hoarder.emojiPacks, id: \.self) { $pack in
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
// EmojiPackDetailView(hoarder: hoarder, pack: $pack, useSwiftUIGrid: useSwiftUIGrid)
|
EmojiPackDetailView(hoarder: hoarder, pack: $pack, useSwiftUIGrid: useSwiftUIGrid)
|
||||||
EmojiPackDetailViewRepresentable(hoarder: hoarder, pack: pack)
|
// EmojiPackDetailViewRepresentable(hoarder: hoarder, pack: pack)
|
||||||
} label: {
|
} label: {
|
||||||
Text(pack.name)
|
Text(pack.name)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,10 +66,16 @@ class EmojiPackDetailViewController: UIViewController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
collectionView.toolbarItems = [shareButton, downloadButton]
|
var shareButton2 = UIAction(title: "Share...", image: UIImage(systemName: "square.and.arrow.up")) { action in
|
||||||
// collectionView.toolbarItems = [editButton, adderSheetButton]
|
print()
|
||||||
|
}
|
||||||
|
var downloadButton2 = UIAction(title: "Download", image: UIImage(systemName: "square.and.arrow.up")) { action in
|
||||||
|
print()
|
||||||
|
}
|
||||||
|
downloadButton2.image = UIImage(systemName: "arrow.down")
|
||||||
|
let x = UIBarButtonItem(title: "menu", image: UIImage(systemName: "ellipsis"), primaryAction: nil, menu: UIMenu(children: [shareButton2, downloadButton2]))
|
||||||
|
|
||||||
collectionView.navigationItem.rightBarButtonItems = [collectionView.editButtonItem]
|
collectionView.navigationItem.rightBarButtonItems = [collectionView.editButtonItem, x]
|
||||||
|
|
||||||
NotificationCenter.default.addObserver(
|
NotificationCenter.default.addObserver(
|
||||||
self,
|
self,
|
||||||
|
|||||||