Open oxnnj opened 2 years ago
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:
Taken in landscape mode but device orientation is unlocked:
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:
Taken in landscape mode and device orientation is locked:
Taken in landscape mode but device orientation is unlocked: