david-swift 26b46e3338 Add property rawValue to State
Modify the wrapped value without updating the view
2024-01-02 08:01:40 +01:00

38 lines
630 B
Markdown

**STRUCT**
# `State`
A property wrapper for properties in a view that should be stored throughout view updates.
## Properties
### `wrappedValue`
Access the stored value. This updates the views when being changed.
### `projectedValue`
Get the value as a binding using the `$` prefix.
### `rawValue`
Get and set the value without updating the views.
### `content`
The stored value.
### `value`
The value with an erased type.
## Methods
### `init(wrappedValue:)`
Initialize a property representing a state in the view.
- Parameters:
- wrappedValue: The wrapped value.
### `updateViews()`
Update all of the views.