From Xojo Documentation
| This method is only available on platform.
For cross-platform compatibility, use ＃If...＃Endif with the Target... specifiers to make sure you will not attempt to use this method on an incompatible platform.
True when the devices is currently in dark mode, otherwise False.
For other platforms use the global IsDarkMode method.
Desktop projects on macOS Mobile projects on iOS