Tag: dark mode

  • Adapting Text Colour for Dark Mode in SwiftUI

    In SwiftUI, ensuring text colour adapts appropriately to dark mode is crucial for readability. If your app supports an automatic appearance mode, the text colour needs to adjust dynamically based on the system’s appearance settings. Here’s a simple way to implement this: This code snippet checks if the darkMode setting is set to .auto. If…

  • Managing Dark Mode and Light Mode in iOS Apps

    In today’s mobile apps, supporting both dark mode and light modes isn’t just a nice to have it’s often expected by users who want their apps to integrate seamlessly with their device settings. Dark mode provides a darker colour palette for all screens, views, menus, and controls, and it’s beneficial for both reducing eye strain…