mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
working on emoji pack stuff
making emojipackview actually look good and setting up edit functionality
This commit is contained in:
8 files changed
+141
-38
No files matched your search
@@ -35,13 +35,14 @@ struct DownloadedView: View {
|
||||
.pickerStyle(.segmented)
|
||||
if emojiHoarder.downloadedStickers.isEmpty && gifHoarder.downloadedStickers.isEmpty {
|
||||
NoStickersView()
|
||||
.padding()
|
||||
}
|
||||
GeometryReader { geo in
|
||||
ScrollView {
|
||||
let columns: Int = max(1, Int((geo.size.width - 2*spacing) / (minColWidth + spacing)))
|
||||
let layout = Array(repeating: col, count: columns)
|
||||
LazyVGrid(columns: layout, spacing: spacing) {
|
||||
ForEach(Array(emojiHoarder.downloadedStickers), id: \.self) { name in
|
||||
ForEach(emojiHoarder.downloadedStickersArr, id: \.self) { name in
|
||||
if let emoji = emojiHoarder.trie.dict[name] {
|
||||
ZStack {
|
||||
Rectangle()
|
||||
|
||||