mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-05-19 14:17:18 +02:00
Xcode 11 beta 6
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ struct ModalDimmingView : View {
|
||||
.opacity(0.3)
|
||||
.edgesIgnoringSafeArea([.bottom, .top])
|
||||
.transition(.opacity)
|
||||
.tapAction {
|
||||
.onTapGesture {
|
||||
self.store.dispatch(event: .cancelCreatingItem)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user