Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dismissing a View in Another File #16

Open
p0fi opened this issue Jan 1, 2021 · 1 comment
Open

Dismissing a View in Another File #16

p0fi opened this issue Jan 1, 2021 · 1 comment

Comments

@p0fi
Copy link

p0fi commented Jan 1, 2021

Dismissing a view does not work if MyModalView is in another file.

ModalLink(destination: MyModalView.init(dismiss:)) {
                Text("Main view")
}

will not compile with the error

type 'MyModalView' has no member 'init(dismiss:)'

@diniska
Copy link
Owner

diniska commented Feb 16, 2021

Does it actually have this initializer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants