Animating a child action #2069
Unanswered
JackYoustra
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @JackYoustra! You can also try to directly act on SwiftUI: .animation(.default, value: viewStore.categorySelection) But the changes you'd want to animate should be simultaneous with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Suppose I have something along the lines of
And I want to animate the
ForEachStore
contents on changes tocategorySelection
to get changes to the list to animate and have the rows slide around and nice things like that.I tried changing
action: Action.selection
toaction: { a in withAnimation { Action.selection(a) } }
but that didn't workChanging
to
gave me a compile error.
I could eschew the
reducerBuilder
syntax in the categorySelection Scope body, and replace with with something likeBut that didn't work either! What should I do?
Beta Was this translation helpful? Give feedback.
All reactions