Documentation
¶
Overview ¶
mobile-ui shows Tango's self-drawn UI (packages ui and ui/mobile) as a full-screen page through uihost.Open: no WebView. It runs unchanged on desktop (go run ./examples/mobile-ui, a phone-sized window) and on iOS (tan build -platform ios-simulator in this directory, or bash mobile/ios/build.sh examples/mobile-ui). See docs/specs/mobile-canvas.md §6.3.
Three tabs: a list page (rows, switches, a tap counter, and overlays that the system Back action closes plus a WebView page with an attached self-drawn overlay: overlays.go, web.go), a form page (text fields of every keyboard kind stacked down to the bottom of the screen, to exercise the soft keyboard, input methods and keyboard avoidance) and a settings page that shows how the window is drawn: the text engine (text.Engine()), the renderer (uihost.Renderer), the window size, scale, safe area and keyboard inset, and the followed system settings, plus a stepper and a slider for a screen reader's adjust gestures. The app logs the same facts at start, every tap it sees and every value committed in the form, so a device run can be checked from the console.