Scene Transitions
How to set up transitions between Scenes
1 min read
An app doesn't consist of just a single Scene.
There are multiple Scenes, each with its own functionality, and these Scenes are primarily connected through Scene Transitions.
The most basic Scene Transitions are Push and Modal, which can be configured on UI elements that support Scene Transitions.
Currently, the UI elements that support Scene Transition configuration are Button and Cell. Support for other UI elements will be provided in future updates.
When you select a Button or Cell, you can see the Event area in the Inspector.
Here, select the Transition Type.
- Present Modal: Displays the Target Scene as a Modal.
- Dismiss: Dismisses itself when it is being shown as a Modal.
- Push: Shows the Target Scene by pushing it.
- Pop: Pops itself when it is being shown via Push.
- Replace Root: Sets the Target Scene as the new Root of the app.
When you select Present Modal, Push, or Replace Root, which require setting a Target Scene, you can choose a Scene.
After setting an Event, you can run Preview to immediately verify that the Scene Transition works correctly.