Skip to content

Commit

Permalink
Update README.md (#100)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md

* Update README.md
  • Loading branch information
0xLeif authored Apr 12, 2024
1 parent 6d47c27 commit 7810c3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ class ViewModel: ObservableObject {

</details>

- [Small Code Samples](https://github.com/0xLeif/AppState/wiki/Small-Code-Samples)

## Documentation

Expand Down Expand Up @@ -385,6 +386,8 @@ class CustomApplication: Application {
Application.promote(to: CustomApplication.self)
```

By doing this, your custom Application subclass becomes the shared singleton instance that you can use throughout your application. This allows you to extend the functionalities of the Application class and utilize these extensions wherever you need in your application.

## SyncState: Near Real-Time State Synchronization

SyncState offers near real-time synchronization of application state across multiple devices using Apple's [NSUbiquitousKeyValueStore](https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore). This allows for a consistent application state across various devices in your ecosystem. If your application operates on multiple platforms, SyncState ensures that all instances share the same state in near real-time.
Expand All @@ -395,8 +398,6 @@ The total amount of space available in your app’s key-value store, for a given

For more information on synchronizing app preferences with iCloud, you can refer to [Apple's official documentation](https://developer.apple.com/documentation/foundation/icloud/synchronizing_app_preferences_with_icloud).

By doing this, your custom Application subclass becomes the shared singleton instance that you can use throughout your application. This allows you to extend the functionalities of the Application class and utilize these extensions wherever you need in your application.

## License

AppState is released under the MIT License. See [LICENSE](https://github.com/0xLeif/AppState/blob/main/LICENSE) for more information.
Expand Down

0 comments on commit 7810c3e

Please sign in to comment.