-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
How do I take photo always in portrait mode even if the device is in landscape or orientation lock is enabled or not all I want is to take photo in portrait mode.
Settings I have done:
photoSession.session.sessionPreset = .photo
photoSession.flashMode = .auto
previewView.session = self.photoSession
previewView.autorotate = false
previewView.previewLayer?.videoGravity = .resizeAspectFill
Taken in landscape mode and device orientation is locked:
Metadata
Metadata
Assignees
Labels
No labels

