Search code examples
iosswift4avcaptureexposure

Manually set exposure for iOS camera in Swift 4


How can I set Aperture and how it will effect in image? I have managed ISO and shutter speed.but I am not able to set Aperture value.


Solution

  • The Aperture is a fixed mechanical size and cannot be changed - neither through code nor device settings.

    You can get the aperture (the size of the lens diaphragm) via the AVCaptureDevice .lensAperture property, but you cannot change it.

    Apple Docs: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624589-lensaperture