Flip Horizontal Segue between view controllers but in opposite direction (compared to default)

28 Views Asked by At

I'm using Xcode 12, and I want to make the flip horizontal transition in the opposite direction. Right now, it goes from right to left, but I want to make it go from left to right. Any ideas?

1

There are 1 best solutions below

2
overstacked On

To reverse the direction of a UIViewAnimationOptions transition, you can use the .reverse modifier:

let transitionOptions: UIView.AnimationOptions = [.transitionFlipFromRight, .reverse]