IOS Flip UIView without shadow

I use transitionFromViewand .TransitionFlipFromLeftto replace the view with another view. Then I want to flip the view without a shadow over the views.

UIView.transitionFromView(
 self.postListView,
 toView:     self.userListView,
 duration:   0.8,
 options:    .TransitionFlipFromLeft,
 completion: nil
)

enter image description here

+4
source share
1 answer

Try it.

[UIView beginAnimations:@"View Flip" context:nil];
[UIView setAnimationDuration:3.25];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:YES];

[self.navigationController pushViewController:SecondViewController animated:NO];
[UIView commitAnimations];

Here's how to animate with map translation in Quick 3 mode:

UIView.transition (from: frontImageView,

          to: backImageView, 
          duration: 0.65, 
          options: .transitionFlipFromRight, 
          completion: nil)
0
source

Source: https://habr.com/ru/post/1648910/


All Articles