namespace viewport
A namespace containing bindings to viewport properties.
namespace viewport;
Notes
- These bindings automatically update when viewport dimensions or preferences change.
Static members
UI.viewport.width static
A binding to the viewport width in logical pixel units.UI.viewport.height static
A binding to the viewport height in logical pixel units.UI.viewport.portrait static
A binding that is true if the viewport is taller than it is wide.UI.viewport.cols static
A binding to the number of columns in the viewport grid.UI.viewport.rows static
A binding to the number of rows in the viewport grid.UI.viewport.prefersDark static
A binding that is true if the user’s preferences indicate a dark color scheme.
Related
namespace UI
A namespace that contains functions for building a declarative UI using view builders.
