Skip to content

HeroModifiers will fail when a nested when modifier exist #757

Description

@cloxnu
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions