Post not yet marked as solved
Post marked as unsolved with 0 replies, 125 views
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) - https://docs-assets.developer.apple.com/published/8e1cd6d675d315339a8f87088e3351a9/110/_p22_explore-with-animations.mp4
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
.transition(.slide)
function from
...
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.