|
1 | 1 | <h1 align="center">SwiftUI Atom Properties</h1>
|
2 |
| -<p align="center">A Reactive Data-Binding and Dependency Injection Library </br>for SwiftUI x Concurrency</p> |
| 2 | +<p align="center">A Reactive Data-Binding and Dependency Injection Library</br>for SwiftUI x Concurrency</p> |
3 | 3 | <p align="center"><a href="https://ra1028.github.io/swiftui-atom-properties/documentation/atoms">📔 API Reference</a></p>
|
4 | 4 | <p align="center">
|
5 | 5 | <a href="https://github.com/ra1028/swiftui-atom-properties/actions"><img alt="build" src="https://github.com/ra1028/swiftui-atom-properties/workflows/test/badge.svg"></a>
|
|
43 | 43 |
|
44 | 44 | |Reactive Data Binding|Effective Data Caching|Compile Safe<br>Dependency Injection|
|
45 | 45 | |:------------------------|:----------------|:--------------------------------|
|
46 |
| -|Piece of value that can be accessed from anywhere propagates changes reactively.|Recompute atom value and views only when truly need, otherwise it caches values until no longer used.|Successful compilation guarantees that dependency injection is ready.| |
| 46 | +|Piece of app data that can be accessed from anywhere propagates changes reactively.|Recompute atom data and views only when truly need, otherwise it caches data until no longer used.|Successful compilation guarantees that dependency injection is ready.| |
47 | 47 |
|
48 | 48 | </p>
|
49 | 49 |
|
@@ -399,7 +399,7 @@ struct ExampleApp: App {
|
399 | 399 |
|
400 | 400 | ### Atoms
|
401 | 401 |
|
402 |
| -An atom represents a piece of state and is the source of truth for your app. It can also represent a derived value by combining and transforming one or more other atoms. |
| 402 | +An atom represents a piece of state and is the source of truth for your app. It can also represent a derived data by combining and transforming one or more other atoms. |
403 | 403 | Each atom does not actually have a global data inside, and retrieve values from the internal store provided by the `AtomRoot`. That's why *they can be accessed from anywhere, but never lose testability.*
|
404 | 404 |
|
405 | 405 | An atom and its value are associated using a unique `key` which is automatically defined if the atom conforms to `Hashable`, but you can also define it explicitly without Hashable.
|
@@ -447,7 +447,7 @@ struct LocaleView: View {
|
447 | 447 | |:----------|:----------|
|
448 | 448 | |Summary |Provides a read-only value.|
|
449 | 449 | |Output |`T`|
|
450 |
| -|Use Case |Computed property, Derived value, Dependency injection| |
| 450 | +|Use Case |Computed property, Derived data, Dependency injection| |
451 | 451 |
|
452 | 452 | #### [StateAtom](https://ra1028.github.io/swiftui-atom-properties/documentation/atoms/stateatom)
|
453 | 453 |
|
|
0 commit comments