Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesetan authored Sep 7, 2023
1 parent c077540 commit 73fc14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@Persistent is a property wrapper type that can read and write a persisted value saved in FileManager.

## TL;DR
## TLDR
@Persistent works with any Codable type, unlike @AppStorage which is limited to a select few types like String, Int, Double etc.
@Persistent also provides a lot of the features that @AppStorage does, like default values for persistent variables, and specified names/locations to store the values.
It's like a persisted version of @State without the hassles of FileManager, UserDefaults, or CoreData.
Expand Down

0 comments on commit 73fc14b

Please sign in to comment.