App can recognise dark mode!

Hello all thunkers, if you’re interested in dark mode then you’ve come to the right place.

So lately I’ve been using Apple developer and I figured out how to use dark mode on websites and I thought why stop there.

This app uses a webviewer with an HTML file, (unzip the file), combined with a “receives message” event to determine whether the website is in dark mode or not. Then the code fires and sends a message to the app saying “light” or “dark”. The app picks up the message and sets the background to the appropriate colour.

And there you have it. Set the webviewer to invisible and you’re set.

Jaythemanchs.

Darkmode Program Full.zip (706 Bytes)

:calling: Copy the project

3 Likes

Very cool! I’ve actually been wondering for a while whether it’s possible to detect if the user is viewing your app in dark mode and then adapt your app interface accordingly.