Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improper preview rotation #33

Open
TheGeekPharaoh opened this issue Mar 5, 2019 · 0 comments
Open

Improper preview rotation #33

TheGeekPharaoh opened this issue Mar 5, 2019 · 0 comments

Comments

@TheGeekPharaoh
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant