-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Text("HStack.animation")
Spacer()
HStack {
ForEach(0..<count, id: \.self) { i in
Color.red
.frame(width: 20, height: 20)
.id(i + 1)
}
}
.frame(width: 100, height: 100)
.background(.gray)
.animation(.default, value: count)
Change this HStack
into a LazyHStack
. Launch the app and click on the grey box or the withAnimation
button
Actual: The red dots appear/disappear instantly without animation.
Expected: Changing the HStack
into a LazyHStack
should have no effect on the animation, or, if it does, there should be an error message somewhere (in the logs, at the very least).
Metadata
Metadata
Assignees
Labels
No labels