Page
A navigation destination: one content view plus its title, toolbar items
<Page ... />
Overview
and presentation, as SwiftUI's .navigationTitle and .toolbar modifiers.
Push the returned controller onto a NavigationStack.
Topics
Properties
| Name | Type | Required | Description |
|---|---|---|---|
title |
string | optional | Navigation title. |
toolbar |
table | optional | ToolbarItem records; placement is principal, primaryAction, topBarLeading, topBarTrailing, cancellationAction, confirmationAction or keyboard (one view child, shown above the keyboard while a text input edits; AppKit leaves it out). |
hidesTabBar |
boolean | optional | Hides the tab bar while the page is visible (UIKit). |
titleDisplayMode |
string | optional | automatic, inline or large (UIKit). |
backButtonDisplayMode |
string | optional | default, generic or minimal (UIKit). |
onDisappear |
function | optional | Called once when the page leaves the stack. |
Platform notes
- AppKit puts toolbar items and a navigational back item in the window toolbar. UIKit uses the navigation bar.
Source: lua/embedded/AppKit.lua:2496 (AppKit.Page)