-
Couldn't load subscription status.
- Fork 48
Open
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
Labels
No labels