This commit is contained in:
neon443 committed 2026-04-08 20:43:14 +01:00
1 parent d79b0557a9
commit 7d7308b274
3 files changed
+18 -19

No files matched your search

@@ -85,8 +85,8 @@ struct EmojiPackDetailView: View {
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(pack.items) { item in
let emoji = hoarder.trie.dict[item.name] ?? .test
ForEach(pack.items, id: \.self) { name in
let emoji = hoarder.trie.dict[name] ?? .test
VStack {
StickerPreview(sticker: emoji)
Spacer()
@@ -98,7 +98,7 @@ struct EmojiPackDetailView: View {
if edit {
Button(role: .destructive) {
withAnimation(.spring) {
pack.items.removeAll { $0.id == item.id }
pack.items.removeAll { $0 == name }
}
} label: {
Image(systemName: "minus.circle.fill")
@@ -131,9 +131,7 @@ struct EmojiPackDetailView: View {
guard let id = UUID(uuidString: selection.id) else {
fatalError("bruh what happened to ur uuid")
}
pack.items.append(
EmojiPack.Item(id: id, name: selection.name)
)
pack.items.append(selection.name)
}
}
}
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.