mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-24 12:14:25 +01:00
Add Store.init that takes reducer builder (#2087)
* Add `Store.init` that takes reducer builder * wip * wip * added some tests * wip * wip * wip --------- Co-authored-by: Brandon Williams <mbrandonw@hey.com>
This commit is contained in:
@@ -86,10 +86,9 @@ final class CounterViewController: UIViewController {
|
||||
struct CounterViewController_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
let vc = CounterViewController(
|
||||
store: Store(
|
||||
initialState: Counter.State(),
|
||||
reducer: Counter()
|
||||
)
|
||||
store: Store(initialState: Counter.State()) {
|
||||
Counter()
|
||||
}
|
||||
)
|
||||
return UIViewRepresented(makeUIView: { _ in vc.view })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user