Skip to content

Commit e90b853

Browse files
authored
Update README.md
1 parent c2cc903 commit e90b853

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,11 @@ An error message is automatically shown if the closure throws an error.
293293
Spice stores can be nested to create a hierarchical user interface.
294294

295295
```swift
296-
final class AppSpiceStore: SpiceStore {
296+
class AppSpiceStore: SpiceStore {
297297
@Spice var featureFlags = FeatureFlagsSpiceStore()
298298
}
299299

300-
final class FeatureFlagsSpiceStore: SpiceStore {
300+
class FeatureFlagsSpiceStore: SpiceStore {
301301
@Spice var notifications = false
302302
@Spice var fastRefreshWidgets = false
303303
}
@@ -356,7 +356,7 @@ let viewController = SpiceEditorViewController(editing: AppSpiceStore.shared, ti
356356
By default, values are stored in [UserDefaults.standard](https://developer.apple.com/documentation/foundation/userdefaults/1416603-standard). To use a different [UserDefaults](https://developer.apple.com/documentation/foundation/userdefaults) instance, such as for sharing data with an app group, implement the `userDefaults` property of `SpiceStore`.
357357

358358
```swift
359-
final class AppSpiceStore: SpiceStore {
359+
class AppSpiceStore: SpiceStore {
360360
let userDefaults = UserDefaults(suiteName: "group.dk.shape.example")
361361
}
362362
```

0 commit comments

Comments
 (0)