I'm currently using PencilKit in an app that is forced to run in dark mode (UIUserInterfaceStyle == Dark
in Info.plist).
But for one UIViewController only, I'm using the light mode for note taking with PencilKit. I change the ToolPicker style by using toolPicker.overrideUserInterfaceStyle = .light
and it works great that way.
Unfortunately, if I want a custom color and I tap on the ColorPicker icon, it seems to still be in dark mode, because when I choose white, it draws black, and if I choose black, it draws black. This doesn't happen if I tap the black color in the predefined palette (not the color picker).
Any idea how to force to color picker to respect the tool picker userInterfaceStyle?