Ensure custom exposure mode is supported
This commit is contained in:
parent
f8efa172ba
commit
9e05ea15c1
@ -200,6 +200,11 @@ extension CameraSession {
|
||||
return
|
||||
}
|
||||
|
||||
guard captureDevice.isExposureModeSupported(.custom) else {
|
||||
ReactLogger.log(level: .info, message: "Custom exposure mode not supported")
|
||||
return
|
||||
}
|
||||
|
||||
do {
|
||||
// Lock the device for configuration
|
||||
try captureDevice.lockForConfiguration()
|
||||
|
Loading…
Reference in New Issue
Block a user