swiftui-navigation-transitions icon indicating copy to clipboard operation
swiftui-navigation-transitions copied to clipboard

OnInsertion is not working in iPhone 11

Open Mohsenkhodadadzadehthelist opened this issue 1 year ago • 0 comments

the following code works fine in iPhone 15 pro, but when I try it with iPhone 11 or iPhone 11 ProMax the Insertion transition does not work and only OnRemoval works fine.

import NavigationTransition
import SwiftUI

extension AnyNavigationTransition {
    
    static var zoomOut: Self {
        .init(ZoomOut())
    }
}

struct ZoomOut: NavigationTransition {
    var body: some NavigationTransition {
        OnPush {
            OnInsertion {
                Scale(1.3)
                ZPosition(1)
              //  Opacity(0)
            }
            
        }
        OnPop {
            OnRemoval {
                Scale(0.7)
                ZPosition(1)
                Opacity()
            }
        }
    }
}