fixed display etc but like lowk cooked cos massive memory leaks

This commit is contained in:
neon443 committed 2026-05-04 19:58:34 +01:00
1 parent 6a92586535
commit 0957e3b4c3
3 files changed
+38 -32

No files matched your search

+14 -13
View File
@@ -13,7 +13,7 @@ struct JumboMojiTestView: View {
@State var searchResult: [String] = []
var body: some View {
ScrollView {
List {
TextField("search", text: $searchTerm)
.autocorrectionDisabled()
.onChange(of: searchTerm) { _ in
@@ -21,18 +21,19 @@ struct JumboMojiTestView: View {
}
ForEach(JumboMoji.from(names: searchResult), id: \.self) { jumboMoji in
VStack {
ForEach(0..<jumboMoji.height, id: \.self) { row in
ForEach(0..<jumboMoji.width, id: \.self) { col in
StickerPreview(sticker: hoarder.trie.dict[jumboMoji.items[row+col]] ?? .test)
}
}
// EmojiCollectionView(
// hoarder: hoarder,
// items: jumboMoji.items,
// pack: nil,
// width: CGFloat(jumboMoji.width),
// style: .jumboMoji
// )
// ForEach(0..<jumboMoji.height, id: \.self) { row in
// ForEach(0..<jumboMoji.width, id: \.self) { col in
// StickerPreview(sticker: hoarder.trie.dict[jumboMoji.items[row+col]] ?? .test)
// }
// }
EmojiCollectionView(
hoarder: hoarder,
items: jumboMoji.items,
pack: nil,
width: CGFloat(jumboMoji.width),
style: .jumboMoji
)
.frame(width: 100, height: 100)
Text(jumboMoji.description)
}
}
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.