docs.rs failed to build waterui-layout-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
waterui-layout-0.2.2
WaterUI Layout Components
Primitives for arranging views: stacks, grid, scroll, spacer, and simple frame metadata.
Stack Layouts
use ;
use text;
// Vertical stack
let v: VStack = vstack;
// Horizontal stack
let h: HStack = hstack;
// Layered stack
let z: ZStack = zstack;
Grid (rows × columns)
use ;
use ;
use text;
let grid = new;
Scroll View
use scroll;
use text;
let scrollable = scroll;
Spacer
use spacer;
let gap = spacer;
Frame and Padding
use ViewExt; // for .frame() and .padding()
use ;
use text;
let framed = text.frame;
// Padding attaches default margins around a view (backend-defined defaults)
let padded = text.padding;
Notes:
Alignmentvariants:Default,Leading,Center,Trailing.padding()currently applies default inset values; custom padding values are not exposed yet.