cordova-plugin-datepicker icon indicating copy to clipboard operation
cordova-plugin-datepicker copied to clipboard

Elements stopped showing in iOS13

Open ne3Vubeki opened this issue 5 years ago • 7 comments

20190926_073034000_iOS

ne3Vubeki avatar Sep 26 '19 07:09 ne3Vubeki

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

ne3Vubeki avatar Sep 26 '19 14:09 ne3Vubeki

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.

roxteddy avatar Oct 02 '19 08:10 roxteddy

All right. And you need to build with a new variable only in xcode 11

ne3Vubeki avatar Oct 02 '19 09:10 ne3Vubeki

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

roxteddy avatar Oct 02 '19 12:10 roxteddy

Wouldn't it be even better to switch the background color to dark grey if we detect the user is running dark theme?

loheander avatar Oct 04 '19 08:10 loheander

This is for someone like. I have a light theme in the application and I better get a white popup.

ne3Vubeki avatar Oct 04 '19 08:10 ne3Vubeki

@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>

amritk avatar Dec 10 '19 00:12 amritk