Skip to content

OnInsertion is not working in iPhone 11 #129

@Mohsenkhodadadzadehthelist

Description

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()
            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions