Skip to content

Commit

Permalink
Update README.md (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmh211 authored Jan 23, 2024
1 parent 07553bc commit fd6e613
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ extension Application {
Once you define the state, it is straightforward to read and write it within your application:

```swift
var appState: Application.State = Application.state(\.username)
var usernameState: Application.State = Application.state(\.username)

// Read the value
print(appState.value) // Output: "Leif"
print(usernameState.value) // Output: "Leif"

// Modify the value
appState.value = "0xL"
usernameState.value = "0xL"

print(Application.state(\.username).value) // Output: "0xL"
```
Expand Down

0 comments on commit fd6e613

Please sign in to comment.