Lines Matching refs:We
11 …hat stores the user's preferred app theme - either dark, light, or system. We'll use [`UserDefault…
92 Now let's run the example project to make sure everything is working. We'll need to start the TypeS…
113 We should now see the text "Theme: system" in the center of the screen when we launch the example a…
121 To set the value, we can use `UserDefaults`'s `set(_:forKey:)` method. We'll make our `setTheme` fu…
143 …g under the key `"theme"`, and fall back to `"system"` if there isn't any. We can get the `SharedP…
145 … to get an `Editor` instance, and then use `putString()` to set the value. We'll make our `setThem…
195 We can now use the `Settings` API in our example app.
215 …because we're never fetching the new theme value and re-rendering the app. We'll fix this in the n…
219 We can ensure that developers using our API can react to changes in the theme value by emitting a c…
341 …API in its current form, because we can set the theme to any string value. We can improve the type…
455 We can see from the last line of the error message that `not-a-real-theme` is not a valid value for…