mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-28 11:37:13 +02:00
Xcode 11 beta 6
This commit is contained in:
@@ -6,9 +6,9 @@ struct AddItemView: View {
|
||||
|
||||
var body: some View {
|
||||
|
||||
let textBinding = Binding<String>(
|
||||
getValue: { self.store.state.partialItemName },
|
||||
setValue: { self.store.dispatch(event: .changePartialItemName($0)) })
|
||||
let textBinding = Binding(
|
||||
get: { self.store.state.partialItemName },
|
||||
set: { self.store.dispatch(event: .changePartialItemName($0)) })
|
||||
|
||||
return VStack(spacing: 16) {
|
||||
TextField("Title", text: textBinding)
|
||||
|
||||
Reference in New Issue
Block a user