flip animation in swift flips whole view not subviews

后端 未结 2 1881
伪装坚强ぢ
伪装坚强ぢ 2021-01-06 14:39

I need to switch between two subviews, for that I am using flip animation, but it flips whole screen not subview. Here is the code I used to flip:

UIView.tra         


        
2条回答
  •  孤街浪徒
    2021-01-06 15:25

    finally i got fix for this, we need to add frontView and backView to another View(container) not for self.view, then container will flip.

提交回复
热议问题