Possible to transition between multiple layouts?
See original GitHub issueI’m working on an application right now and would like to use different layouts for when the user is going through Onboarding steps or has completed them and are in the main application.
I noticed the docs have you specify a single MainLayout
that will be used throughout the application. Is it possible to use transactions between multiple?
<Found Context="routeData">
<LayoutView Layout="@typeof(MainLayout)">
<TransitionableRoutePrimary RouteData="@routeData" ForgetStateOnTransition="false">
<TransitionableRouteView DefaultLayout="@typeof(MyViewLayout)" />
</TransitionableRoutePrimary>
<TransitionableRouteSecondary RouteData="@routeData" ForgetStateOnTransition="false">
<TransitionableRouteView DefaultLayout="@typeof(MyViewLayout)" />
</TransitionableRouteSecondary>
</LayoutView>
</Found>
If not, how can we approach using a mix of ‘Transitionable’ and non-transitionable layouts? One though was to get the page type and see if it implements some ITransitionableLayoutComponent
interface through reflection, but wanted to check if there was a way already built-in to handle this.
Your help is much appreciated!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Is there a way to have multiple independent transitions in ...
1 Answer. MotionLayout moves the layout between ConstraintSets (states). ConstraintSet contains the state of all child Views. Another options ...
Read more >SwiftUI AnyLayout - smooth transitions between layout types
In iOS 16, SwiftUI got a new tool, AnyLayout , that makes it possible to transition between layouts ( Layout ) while maintaining...
Read more >Animate layout changes using a transition
This lets you transition between the two UI configurations. To obtain a scene, you need a reference to the scene root and the...
Read more >Motion Layout: Multiple ConstraintSets - MAD Skills - YouTube
On this episode of Motion Layout for the MAD Skills series, you will learn how to add multiple ConstraintSets to the same Motion...
Read more >How do I make smooth transitions between layouts
Anyone know how to make a transition between levels/rooms like in the original NES ... so multi-layout connections could be possible.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t think I saw this. Let me know if it becomes an issue.
One thing to note (not sure if you got this at all on your end), but I did see quite a considerable performance hit when using this full page approach. I spun the example up again with the blazor wasm template and was getting about a 400ms on input to switch back and forth from /count to /fetchdata