From 0b7bad6b90e7c2a55f6cbc1a1af1b29a4aab0114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zhiyu=20Zhu/=E6=9C=B1=E6=99=BA=E8=AF=AD?= Date: Mon, 19 Aug 2019 13:08:12 +0800 Subject: [PATCH] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 312e343..61834a7 100644 --- a/README.md +++ b/README.md @@ -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`.