This commit is contained in:
Ivan Vorobei
2019-06-26 22:12:35 +03:00
parent 2477f5d038
commit 48001a8e9a
1363 changed files with 6 additions and 3 deletions
@@ -0,0 +1,27 @@
import SwiftUI
struct ModalDimmingView : View {
@EnvironmentObject var store: Store<TodoState>
var body: some View {
Color
.black
.relativeWidth(1.0)
.relativeHeight(1.0)
.opacity(0.3)
.edgesIgnoringSafeArea([.bottom, .top])
.transition(.opacity)
.tapAction {
self.store.dispatch(event: .cancelCreatingItem)
}
}
}
#if DEBUG
struct ModalDimmingView_Previews : PreviewProvider {
static var previews: some View {
ModalDimmingView()
}
}
#endif