With the following code, the intention is to have the transition fading in (opacity) and shifting downwards (offset) at the same time but with a delay of .3 seconds.
With this one only the opacity transition is visible after 0.3 seconds:
.transition(.offset(x: 0, y: -20)
.combined(with: .opacity)
.animation(.easeOut.delay(0.3)))
I thought maybe the animation has to be set on both transitions, the initial AND the combined one like so (spoiler: same results as before):
.transition(.offset(x: 0, y: -20)
.combined(with:.opacity.animation(.easeOut.delay(0.5)))
.animation(.easeOut.delay(0.5)))
Changing the order doesn't change the outcome either:
.transition(.offset(x: 0, y: -20)
.animation(.easeOut.delay(0.5))
.combined(with: .opacity.animation(.easeOut.delay(0.5))))
So what am I doing wrong here? How can I have a combined transition delayed?