IQMediaPickerController
IQMediaPickerController copied to clipboard
Improper preview rotation
When using IQMediaPickerController as follows:
let picker = IQMediaPickerController()
picker.delegate = self
picker.allowsPickingMultipleItems = false
picker.sourceType = .cameraMicrophone
picker.mediaTypes = [PHAssetMediaType.image.rawValue] as [NSNumber]
self.present(picker, animated: true, completion: nil)
The preview image is rotated -90 degrees, while the controls are oriented correctly. I can use picker.view.transform = CGAffineTransform(rotationAngle: CGFloat(-Double.pi/2.0)) to rotate the entire view, but then only the preview is rendered correctly. The controls are now rotated incorrectly. Is there a way to correctly orient the preview and the controls at the same time?