bar: fix crash when long pressing emoji selection
Changelog-Fixed: Fix crash when long-pressing reactions
This commit is contained in:
1 parent
0178478199
commit
3098d4b4fa
1 file changed
+1
-1
@@ -307,7 +307,7 @@ struct LikeButton: View {
|
|||||||
HStack(spacing: 20) {
|
HStack(spacing: 20) {
|
||||||
ForEach(emojis, id: \.self) { emoji in
|
ForEach(emojis, id: \.self) { emoji in
|
||||||
if let index = emojis.firstIndex(of: emoji) {
|
if let index = emojis.firstIndex(of: emoji) {
|
||||||
let scale = showEmojis.count >= index + 1 ? showEmojis[index] : 0
|
let scale = index < showEmojis.count ? showEmojis[index] : 0
|
||||||
Text(emoji)
|
Text(emoji)
|
||||||
.scaleEffect(Double(scale))
|
.scaleEffect(Double(scale))
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
|
|||||||
Reference in new issue
Block a user