Skip to content

Commit 73100c9

Browse files
committed
Auto-commit: 2025-07-13 19:40:16 UTC
1 parent 44e03bc commit 73100c9

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ targets: [
3232

3333
## <br><br> Usage
3434

35-
### StateViewModel — Designed for SwiftUI
35+
### StateViewModel — A container for your state properties
3636

3737
```Swift
3838
struct CounterState {
@@ -71,7 +71,6 @@ struct CounterView: View {
7171
### EventViewModel — One-Off Effects, SwiftUI-Friendly
7272

7373
```Swift
74-
protocol ViewModelEvent {}
7574
struct LoginSucceeded: ViewModelEvent {}
7675
struct LoginFailed: ViewModelEvent { let message: String }
7776

@@ -172,7 +171,7 @@ final class ChildViewModel: EventViewModel, ObservableObject {
172171
}
173172
```
174173

175-
##### <br> ** Call order **
174+
### **Call order:**
176175

177176
1. `ParentView` renders and subscribes to `child.eventPublisher`.
178177
2. User taps "Send to child" button.
@@ -277,13 +276,6 @@ struct ChildBView: View {
277276
7. `ChildBViewModel` emits an `ExampleEvent` via its own `eventSubject`.
278277
8. `ChildBView` listens to `viewModel.eventPublisher` via `.onReceive`, receives the event, and updates its UI (`lastEvent`).
279278

280-
## <br> Contributing
281-
282-
We welcome contributions, feature suggestions, and bug reports.
283-
284-
* Target Swift 5.9+
285-
* Prefer actor-based, concurrency-safe implementations
286-
* Include tests for new features
287279

288280
## <br> License
289281

0 commit comments

Comments
 (0)