Closed cilman closed 3 years ago
Hey - glad you like it 😊
router.trigger(.someRoute, with: TransitionOptions(animated: false))
instead of just router.trigger(.someRoute)
Animation
object with most of the available transitions (e.g. Transition.push
). Have a look at this folder for some examples and take a look at the code documentation - if you have any questions, feel free to comment here or open another issue.Thanks for the answers, but i have some more issues
router.pop()
. it doesn't have "with" option.router.trigger(.initial, on: aCoordinator)
and it has no with too.I think i can use Transitions with number 2 above , i expect it to solve numaber 1 ( .pop() ) too , am i right? I mean if I can an "do nothing" animation as dismissal animation, is that works?
@cilman I think API for passing options in trigger(... on: ...)
is missing. You can add it by yourself:
extension Transition {
public static func trigger<R: Router>(_ route: R.RouteType, on router: R, options: TransitionOptions) -> Transition {
Transition(presentables: [], animationInUse: nil) { _, _, completion in
router.trigger(route, with: options, completion: completion)
}
}
}
Hi, Im new to XCoordinator, im using it with viper and loved
I dont know where to ask questions so im writing here
Thanks.