Open p0fi opened 3 years ago
Dismissing a view does not work if MyModalView is in another file.
MyModalView
ModalLink(destination: MyModalView.init(dismiss:)) { Text("Main view") }
will not compile with the error
type 'MyModalView' has no member 'init(dismiss:)'
Does it actually have this initializer?
Dismissing a view does not work if
MyModalView
is in another file.will not compile with the error
type 'MyModalView' has no member 'init(dismiss:)'