Plain Page
Plain pages are good for the home screen, since they do not display title bar or "Back" button.
Attributes:
widget: Widget
- Required
- The widget to display on the page
title: "Page One"
- Available to analytics tools through UIKit
UIViewController.title
- Available to analytics tools through UIKit
poll_seconds: n
- Page silently refreshes every
n
seconds, when the app is in the foreground. - Page silently refreshes when the user switches to the app.
- Page silently refreshes every
ephemeral: true
- For static pages only.
- When the user terminates the app and starts it again, do not restore this page or any subsequent pages in the stack. This is useful for error pages.
Example
# Ruby
plain_page(title: "Home Page", poll_seconds: 30) {
scroll {
column(widgets: [
text("text"),
])
}
}
#![allow(unused)] fn main() { // Rust nav_page("Home Page", scroll(column(( text("text"), )))) .with_poll(30) }