Skip to main content

View

Macro View 

Source
View!() { /* proc-macro */ }
Expand description

A view tree builder macro.

§Example

// Pass-through single expression:
View!(Text("hello"))

// Layout with children:
View! {
    Column {
        Text("Hello"),
        Text("World"),
    }
}

// With modifier args:
View! {
    Column(padding: 16.0, gap: 8.0) {
        Text("Hello"),
        Text("World"),
    }
}