Replies: 1 comment
-
You can create a custom transition like this one: import SwiftUI
import NavigationTransitions
extension AnyNavigationTransition {
static var sheet: Self {
.init(Sheet())
}
}
struct Sheet: NavigationTransition {
var body: some NavigationTransition {
OnPush {
OnInsertion {
Move(edge: .bottom)
}
}
OnPop {
OnRemoval {
Move(edge: .bottom)
}
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello, i want to show view like present full screen view animation
i tried slide(axis: .vertical)) but animation not like present
Beta Was this translation helpful? Give feedback.
All reactions