We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello good people. I downloaded the work that @andersio did here ReactiveCocoa/ReactiveSwift#776 and added the following extension to the Store:
Store
@available(iOS 13.0, *) extension Store: ObservableObject { public var objectWillChange: ProducerPublisher<Context<State, Event>, Never> { self.state.producer.publisher() } }
This seemed to be enough to power a small SwiftUI view:
struct ContentView: View { @ObservedObject var store: Store<Counter.State, Counter.Event> var body: some View { VStack { Text("\(store.state.value.count)") Button(action: { self.store.send(event: .increment) }, label: { Text("Increment") }) } } }
How do you think we could move this forward? ❤️
The text was updated successfully, but these errors were encountered:
See ReactiveCocoa/Loop#2 in the community fork for SwiftUI integration concepts.
ReactiveCocoa/ReactiveSwift#776 is not strictly required to implement them.
Sorry, something went wrong.
No branches or pull requests
Hello good people. I downloaded the work that @andersio did here ReactiveCocoa/ReactiveSwift#776 and added the following extension to the
Store
:This seemed to be enough to power a small SwiftUI view:
How do you think we could move this forward? ❤️
The text was updated successfully, but these errors were encountered: