Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-zethraeus authored Nov 1, 2023
1 parent 9167151 commit 1464a43
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 @@ -5,7 +5,8 @@ within another `ObservableObject` to naturally notify SwiftUI of changes.

## What it achieves

With many patterns with this separation of concerns the developer ends up having to set up manual data bindings between the ViewModel (or Presenter) and the underlying DomainModel (or business logic). 'Reactivity' is hard — and tools used to handle it directly, like RxSwift and Combine, are error prone.
Some architectural patterns split view logic, from presentation logic, from domain logic. Often with this separation of concerns the developer ends up having to set up manual data bindings between the ViewModel (or Presenter) and the underlying DomainModel (or business logic).
'Reactivity' is hard — and tools used to handle it directly, like RxSwift and Combine, are error prone.

With `@Republished` you can lean into SwiftUI's regular change observation pipeline and code imperatively — while still keeping your model abstraction layer crisp for your business essential logic.

Expand Down Expand Up @@ -55,7 +56,7 @@ Use this library via Swift Package Manger by adding a dependency in your Package
.package(url: "https://github.com/adam-zethraeus/Republished", from: "1.1.1")
```

### Implementation
### Usage
The outer `ObservableObject` should hold the inner one in a var annotated
with the `@Republished` property wrapper.

Expand Down

0 comments on commit 1464a43

Please sign in to comment.