1
0
mirror of git://jb55.com/damus synced 2024-09-18 19:23:49 +00:00

Fix crash when long pressing custom reactions

Changelog-Fixed: Fix crash when long pressing custom reactions
This commit is contained in:
William Casarin 2023-08-28 08:00:03 -07:00
parent caffa0398b
commit 50d55572be

View File

@ -329,7 +329,9 @@ struct LikeButton: View {
for (index, _) in emojis.enumerated() {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1 * Double(index)) {
withAnimation(.interpolatingSpring(stiffness: 170, damping: 8)) {
showEmojis[index] = 1
if index < showEmojis.count {
showEmojis[index] = 1
}
}
}
}