Skip to content

Improper preview rotation #33

@TheGeekPharaoh

Description

@TheGeekPharaoh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions