Xcode 11 beta 6

This commit is contained in:
John Holdsworth
2019-08-20 18:54:37 +02:00
parent a36ff1b7ca
commit 7de7e1e47b
40 changed files with 114 additions and 115 deletions

View File

@@ -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)