david-swift 4937c36b3b Improve updating performance
And update docs reflecting the changes in the latest commits
2024-01-27 08:07:05 +01:00

44 lines
859 B
Markdown

**STRUCT**
# `ViewStack`
A widget holding multiple children but only displaying one.
## Properties
### `content`
The stack's active content.
### `id`
The stack's active identifier.
## Methods
### `init(id:view:)`
Initialize the stack.
- Parameters:
- id: The identifier of the current view.
- view: The current view.
### `init(element:view:)`
Initialize the stack.
- Parameters:
- element: The current identifiable element.
- view: The current view.
### `container(modifiers:)`
Get a stack's view storage.
- Parameter modifiers: Modify views before being updated.
- Returns: The stack's view storage.
### `update(_:modifiers:updateProperties:)`
Update a stack's view storage.
- Parameters:
- storage: The view storage.
- modifiers: Modify views before being updated.
- updateProperties: Whether to update properties.