cordova-plugin-datepicker
cordova-plugin-datepicker copied to clipboard
Elements stopped showing in iOS13
This is due to the installation of a dark theme, the font becomes white. You need to add the variable UIUserInterfaceStyle: Light to the file ...info.plist
Indeed. If I switch iPad to light theme, the text reappears. What's weird is my previous builds continue to work on iOS 13 dark theme. Only versions built after xcode update seems to be affected.
All right. And you need to build with a new variable only in xcode 11
I was anxious to forget to modify this each time since I often reinstall platforms and plugins so I forked the plugin and added the parameter to the config XML. I did a PR but since I can see the project has not moved for years, you can use my version if needed : https://github.com/roxteddy/cordova-plugin-datepicker
Wouldn't it be even better to switch the background color to dark grey if we detect the user is running dark theme?
This is for someone like. I have a light theme in the application and I better get a white popup.
@ne3Vubeki your fix worked!
To use it in the config.xml:
<platform name="ios">
<config-file parent="UIUserInterfaceStyle" platform="ios" target="**-Info.plist">
<string>Light</string>
</config-file>
</platform>