HeroTransitions / Hero

Elegant transition library for iOS & tvOS

Home Page:https://HeroTransitions.github.io/Hero/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HeroModifiers will fail when a nested `when` modifier exist

cloxnu opened this issue · comments

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.