dpogue opened a new pull request #896: URL: https://github.com/apache/cordova-ios/pull/896
# Platforms affected iOS ### Motivation and Context Resolves #890 where the splashscreen UIView defaults to a transparent background if no `BackgroundColor` preference is specified in config.xml. ### Description Add a named color set to Images.xcassets named `BackgroundColor` which defaults to the system background colour (respecting dark mode). On prepare, it will be set to the value specified in config.xml. Set the LaunchScreen Storyboard to use that as the background colour, and also ensure the WebView and SplashScreen UIView also use it as the background colour. This also hypothetically opens the door for people to (via `<resource-file>` tags) provide their own color set content with different values for different devices or different light/dark modes. Caveat that this is not in the realm of supported Cordova behaviour, and we do not make any guarantees about this working. If you're embedding the Cordova ViewController in another app or otherwise don't have a `BackgroundColor` color set in xcassets, it will fallback to white. ### Testing <!-- Please describe in detail how you tested your changes. --> * Manual testing against a simulator. * Added spec tests for the `BackgroundColor` preference parsing in prepare.spec.js ### Checklist - [x] I've run the tests to see all new and existing tests pass - [x] I added automated test coverage as appropriate for this change - [x] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/)) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org