A navigation bar appears at the top of an app screen, below the status bar, and enables navigation through a series of hierarchical screens. When a new screen is displayed, a back button, often labeled with the title of the previous screen, appears on the left side of the bar. Sometimes, the right side of a navigation bar contains a control, like an Edit or a Done button, for managing the content within the active view. In a split view, a navigation bar may appear in a single pane of the split view. Navigation bars are translucent, may have a background tint, and can be configured to hide when the keyboard is onscreen, a gesture occurs, or a view resizes.
Horizontal navigation is a popular navigation pattern widely used to display hierarchical content, ie:
- the setting of an app, and the user taps an element to open its subsettings
- a social item, and the user taps a preview to open its full description and details
A common App schema is to have a root
Window like a TabBar and a
Navigation for each of its child.
If the navigation is not in a single direction (from generic to detail and viceversa) then
Navigation may not be appropriate.
How to use
- Drop a
Navigationand customize the main
- Drop 1 or more child
- For each child
Navigation Barsubsettings (bar visibility, title, prompt and buttons)
- Add or remove
Windowby code or by actions
- Start adding a
Navigationby tapping the New Navigation button on the bottom bar
- Configure the
Navigationappearance and the application hierarchy by adding
- Configure each screen to add a
- keep doing the same until you have a hierarchy like this
- Navigation1 - Window1 (startup window) - Button1 - Window2 - Window3
Interacting using Gravity
To push a new
Window into the hierarchy, ie from a button
To pop one level:
To pop to the root level:
Interacting using Actions
- select the
- select Event -> Action and tap Add
- select Open -> Details1
- select In -> Current
- select Using -> Default
Customize a navigation bar
The navigation bar can be customized by tapping the
Window subnode icons (+).
Navigation Bar may have:
- A custom title
- A custom prompt
- 1 or more left button
- 1 or more right button
- A custom back button
The buttons can both be custom (with a user provided title/image) or selected from the list of the iconic system buttons.
Note: without the Title subnode the title itself is automatically retrieved from the name of the current children
Most important properties
Several UI aspects can be configured but the most used are:
Style, white with dark text or black with light text.
Translucent Navigation Bar, when set true the background is semitransparent.
Bar Color, navigation bar background tint color.
Prefer Large Titles, when set true the title is displayed in a large format.
Hide Navigation Bar, when set true the navigation bar is hidden, usually just the root screen has the navigation bar hidden.
Compact navigation bar.
Large navigation bar.
Navigation contains a complete list of properties and methods that can be used to customize a