Cannot confirm activeColorSpace has been set when setting to sRGB on iPad Pro 9.7

I am working on an image capture up which is running on an iPad Pro 9.7.


When I configure my session, I set automaticallyConfiguresCaptureDeviceForWideColor to NO, and set the active color space to be sRGB as indicated below.


If I interrogate the video device immediately after setting automaticallyConfiguresCaptureDeviceForWideColor = NO, it reports display P3 as active.


After I set the device to use the activeColorSpace to RGB, when I interrogate the device it reports nil as active.


I've tried to configure the device before adding it to the session, during session configuration, and after (before startRunning) and get the same behavior.


It seems like it is doing the right thing, but I cannot programmatically confirm. Is this a bug?


Code snippet below:


self.captureSession.automaticallyConfiguresCaptureDeviceForWideColor = NO;

NSError *error = nil;

[self.videoDevice lockForConfiguration:&error];

if (error) {

if (completionHandler) {

completionHandler(error);

ALog(@"Could not acquire device lock for color space. Error: %@", error == nil ? @"nil" : error.localizedDescription);

return;

}

}

self.videoDevice.activeColorSpace = AVCaptureColorSpace_sRGB;

[self.videoDevice unlockForConfiguration];