Disclaimer: I followed the SwiftUi Tutorials in coffee-brakes and on spare time so it might happen that I have misst something.
I "finished" the part "Animation Views and Transitions" but the end result doesn't works like it should be.
It should look like this: (A video from the Animation, grapped from the developer side)
But instead of moving the individual bars up and down, changing color and scaling them accordingly, the result only moves the first chart up and down.
I have found that when I removed the
function. (Obviously i shortened the Code)
I get the color change, the moving and scaling of the bars, but in a random manner.
Since the finished part, that is in the download folder, shows the same behavior I see forward for an answer here.
Kind regards.
I "finished" the part "Animation Views and Transitions" but the end result doesn't works like it should be.
It should look like this: (A video from the Animation, grapped from the developer side)
But instead of moving the individual bars up and down, changing color and scaling them accordingly, the result only moves the first chart up and down.
I have found that when I removed the
Code Block .transition(.slide)
function fromCode Block var body: some View { ... GraphCapsule( index: index, ... .colorMultiply(self.color) .transition(.slide) .animation(.ripple(index: index)) } ...
function. (Obviously i shortened the Code)
I get the color change, the moving and scaling of the bars, but in a random manner.
Since the finished part, that is in the download folder, shows the same behavior I see forward for an answer here.
Kind regards.