I would like my app to show a black background interface when it is run on a black fronted device, and a white interface when the device front is not black. What I found so far is:
- an official UIDevice.current API, but I can not find an information on device color there, unless UIDevice.current.identifierForVendor (i.e. UUID) has it encoded?
- a hinted solution for objective-C (How to detect the colour of an iPhone 5c?), however I didn't managed to run it under Swift, and probably an app with this solution will not pass through an App Store revision.
Is it possible to get device front color info?