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

35 lines
664 B
Markdown

**STRUCT**
# `ContentModifier`
A widget which replaces views of a specific type in its content.
## Properties
### `content`
The wrapped view.
### `modify`
The closure for the modification.
## Methods
### `container(modifiers:)`
Get the content's container.
- Parameter modifiers: Modify views before being updated.
- Returns: The content's container.
### `update(_:modifiers:updateProperties:)`
Update the content.
- Parameters:
- storage: The content's storage.
- modifiers: Modify views before being updated.
- updateProperties: Whether to update properties.
### `modifyView(_:)`
Apply the modifier to a view.
- Parameter view: The view.