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

786 B

STRUCT

StateWrapper

A storage for @State properties.

Properties

content

The content.

state

The state information (from properties with the State wrapper).

Methods

init(content:)

Initialize a StateWrapper.

  • Parameter content: The view content.

init(content:state:)

Initialize a StateWrapper.

  • Parameters:
    • content: The view content.
    • state: The state information.

update(_:modifiers:updateProperties:)

Update a view storage.

  • Parameters:
    • storage: The view storage.
    • modifiers: Modify views before being updated.
    • updateProperties: Whether to update properties.

container(modifiers:)

Get a view storage.

  • Parameter modifiers: Modify views before being updated.
  • Returns: The view storage.