mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
fixed the colelctionview again
This commit is contained in:
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(
|
||||
|
||||