You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we only support two screen presentation styles: push and sheet. We could add a way to define custom screen presentation styles.
Problem description
Custom screen presentation styles are a bit tricky as they involve local state for animation. SwiftUI defines animations on a view basis and we could come up with something along the lines of
protocolScreenTransition:Hashable{func animatedContent<Content:View>(content:Content, isVisible:Bool)->someView}structFullScreenCoverTransition:ScreenTransition{func animatedContent<Content:View>(content:Content, isVisible:Bool)->someView{
content
.animationModifiers() // do whatever you want here
}}
We would then need to plug this into NavigationNode and make sure that we properly perform the animation on show and dismiss.
The text was updated successfully, but these errors were encountered:
Idea
Currently, we only support two screen presentation styles: push and sheet. We could add a way to define custom screen presentation styles.
Problem description
Custom screen presentation styles are a bit tricky as they involve local state for animation. SwiftUI defines animations on a view basis and we could come up with something along the lines of
We would then need to plug this into NavigationNode and make sure that we properly perform the animation on show and dismiss.
The text was updated successfully, but these errors were encountered: