Fix crash when long pressing custom reactions
Changelog-Fixed: Fix crash when long pressing custom reactions
This commit is contained in:
@@ -329,7 +329,9 @@ struct LikeButton: View {
|
|||||||
for (index, _) in emojis.enumerated() {
|
for (index, _) in emojis.enumerated() {
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1 * Double(index)) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1 * Double(index)) {
|
||||||
withAnimation(.interpolatingSpring(stiffness: 170, damping: 8)) {
|
withAnimation(.interpolatingSpring(stiffness: 170, damping: 8)) {
|
||||||
showEmojis[index] = 1
|
if index < showEmojis.count {
|
||||||
|
showEmojis[index] = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user