Slide 72
Slide 72 text
シャッタースピード
// CMTime(value: 24, timescale: 1000000) = 24/1000000, 1/42000
captureDevice.activeFormat.minExposureDuration
// CMTime(value: 1, timescale: 1) = 1s
captureDevice.activeFormat.maxExposureDuration
try? captureDevice.lockForConfiguration()
captureDevice.setExposureModeCustom(
duration: .init(value: 1, timescale: 1000),
iso: captureDevice.iso,
completionHandler: nil)
captureDevice.unlockForConfiguration()