Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elements stopped showing in iOS13 #274

Open
ne3Vubeki opened this issue Sep 26, 2019 · 7 comments
Open

Elements stopped showing in iOS13 #274

ne3Vubeki opened this issue Sep 26, 2019 · 7 comments

Comments

@ne3Vubeki
Copy link

20190926_073034000_iOS

@ne3Vubeki
Copy link
Author

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

@roxteddy
Copy link

roxteddy commented Oct 2, 2019

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.

@ne3Vubeki
Copy link
Author

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

@roxteddy
Copy link

roxteddy commented Oct 2, 2019

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

@loheander
Copy link

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

@ne3Vubeki
Copy link
Author

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

@amritk
Copy link

amritk commented Dec 10, 2019

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

@yimity yimity mentioned this issue Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants