.scrollTransition { view, phase in
view.opacity(phase.isIdentity ? 1 : 0)
.scaleEffect(phase.isIdentity ? 1 : 0.75)
}
Is there anyway to pass the phase.isIdentity to my @State bool property?
iOS 17
.scrollTransition { view, phase in
view.opacity(phase.isIdentity ? 1 : 0)
.scaleEffect(phase.isIdentity ? 1 : 0.75)
}
Is there anyway to pass the phase.isIdentity to my @State bool property?
iOS 17