fixed the colelctionview again

This commit is contained in:
neon443 committed 2026-04-28 23:55:44 +01:00
1 parent 2ca8569258
commit e75e275674
3 files changed
+41 -38

No files matched your search

@@ -102,7 +102,10 @@ struct EmojiCollectionView: UIViewRepresentable {
return items.count
}
override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
override func collectionView(
_ collectionView: UICollectionView,
cellForItemAt indexPath: IndexPath
) -> UICollectionViewCell {
let cell: PlainEmojiCollectionViewCell
switch style {
case .plain, .plainWithMenu:
@@ -136,9 +139,9 @@ struct EmojiCollectionView: UIViewRepresentable {
label.text = emojiName
let labelHeight = label.sizeThatFits(CGSize(width: width, height: .infinity)).height
print(width+labelHeight)
print(width+labelHeight+4)
return CGSize(width: width, height: width+labelHeight)
return CGSize(width: width, height: width+labelHeight+4)
}
override func collectionView(
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.