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:
parent
caffa0398b
commit
50d55572be
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user