Disable rotation animation of one subview
<p>I'm trying to disable device orientation animation for just some subviews in my <code>UIView</code> subclass. I managed to disable camera preview rotation animation by using this view layer as <code>AVCaptureVideoPreviewLayer</code> and reacting to <code>UIApplicationWillChangeStatusBarOrientation</code> by changing <code>layer.connection.videoOrientation</code>. This works ok, but I also have one subview added that I also want to rotate without animation. Is there some way I can remove this animation for just that subview? Also I can't use <code>willAnimateRotationToInterfaceOrientation</code> as it's in <code>UIViewController</code>, and I want my <code>UIView</code> subclass to work this way without implementing anything additional in the controller. I only have <code>UIView</code> functions and <code>NotificationCenter</code> to work with. </p>