How to pass scrollTransition's phase value to my @State property

.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

How to pass scrollTransition's phase value to my @State property
 
 
Q