Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ApolloZhu authored Aug 19, 2019
1 parent 9156452 commit 0b7bad6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ An easy way to store anything anywhere -- UserDefaults, KeychainAccess, YYCache,
```swift
@EFStorageUserDefaults(forKey: "username", defaultsTo: User.Name.random())
var username: String

// Or, if you don't like constraints,
UserDefaults.efStorage.username = "OwO"
```

See [Wiki](https://github.com/EFPrefix/EFStorage/wiki) for details on how to use `EFStorage`.

0 comments on commit 0b7bad6

Please sign in to comment.