With SwiftUI (Xcode 11.1), I\'ve got some Views set up with 2-way bindings (using @Binding). Two-way updating works great.
However, how can I insta
You have to declare it as @State on your Preview.
struct AddProjectView_Previews: PreviewProvider { @State static var showModal: Bool = false static var previews: some View { AddProjectView(showModal: $showModal) } }
Also remeber that it needs to be static as it is used in a static func.