I\'m trying to disable any discernable orientation rotation to an AVCaptureVideoPreviewLayer while still maintaining rotation for any subviews. AVCaptureVideoPreviewLayer does h
After examining Apple Example, I have figured out how to disable the rotation of your videoPreviewLayer in iOS 11 and later. (not sure if the same works for older version)
Simply set the clipToBounds = false on the UIView of your videoPreviewLayer.