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

HeroModifiers will fail when a nested when modifier exist #757

Open
cloxnu opened this issue Mar 2, 2023 · 0 comments
Open

HeroModifiers will fail when a nested when modifier exist #757

cloxnu opened this issue Mar 2, 2023 · 0 comments

Comments

@cloxnu
Copy link
Contributor

cloxnu commented Mar 2, 2023

view.heroModifiers = [
    .when({ $0.isMatched && $0.matchedView?.alpha != 0 && $0.view.alpha != 0 }, [
        .forceNonFade,
        .when({ ($0.isAppearing && $0.isPresenting || !$0.isAppearing && !$0.isPresenting) }, .opacity(0)),
    ]),
]

Look at this, .opacity(0) will never be added.

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

1 participant