IQMediaPickerController icon indicating copy to clipboard operation
IQMediaPickerController copied to clipboard

Improper preview rotation

Open TheGeekPharaoh opened this issue 6 years ago • 0 comments

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?

TheGeekPharaoh avatar Mar 05 '19 16:03 TheGeekPharaoh