this one helps. The issue turned out to be the zPositions of other views' layers - most likely caused by a UITableView in the view hierarchy. The setup is a UIViewController which adds a header UIImageView and a UITableView to its own view in viewDidLoad. The animation is then added last to be on top of the other views. It seems the UITableView somehow modifies the zPositions of layers, so only after finally trying leftdoorView.layer.zPosition = 1000; and moving the actual animation to a separate selector executed 0.2 secs after viewDidLoad did the animation show properly.
CATransform3DRotate and UIImageView
By : Rahul Chundunsing
Date : March 29 2020, 07:55 AM
may help you . CATransform3DRotate() takes as its first parameter a transform to apply a rotation to. If you were looking to rotate the transform of your layer, you would use
it should still fix some issue I am observing a strange behaviour in a CATransform3DRotate which I am applying to the layer of a view which is in front of a view whose layer has a CAGradientLayer. , Add a z translation to your transform :