Questions tagged [ios-darkmode]

In macOS and iOS (13.0 and later), users can choose to adopt a system-wide light or dark appearance. The dark appearance, known as Dark Mode, implements an interface style that many apps already adopt. Users choose the aesthetic they prefer, and can also choose to toggle their interface based on ambient lighting conditions or a specific schedule.

All iOS/Mac apps should support both light and dark interface styles, but might perform better with a specific appearance in some places.

271 questions
487
votes
30 answers

Is it possible to opt-out of dark mode on iOS 13?

A large part of my app consists of web views to provide functionality not yet available through native implementations. The web team has no plans to implement a dark theme for the website. As such, my app will look a bit half/half with Dark Mode…
SeanR
  • 7,899
  • 6
  • 27
  • 38
384
votes
7 answers

How to use dark mode in simulator iOS 13?

While I am developing the iOS app I need to test it in simulator with dark mode option so I can get more clarity about the app UI. But when I go to the Setting I am not getting option for dark mode as real device showing.
Mr.Javed Multani
  • 12,549
  • 4
  • 53
  • 52
103
votes
0 answers

iOS 13 disable Dark Mode changes

My application isn't prepared for Dark Mode and I'm not going to work on it today. Is there a way to disable Dark Mode changes for my app?
Erick Filho
  • 1,962
  • 3
  • 18
  • 31
90
votes
2 answers

How to check for Dark Mode in iOS?

How to observe dark mode state in an iOS app How to react to changes in dark mode state in an iOS app
Marko
  • 2,778
  • 2
  • 10
  • 19
75
votes
16 answers

How can I check whether dark mode is enabled in iOS/iPadOS?

Starting from iOS/iPadOS 13, a dark user interface style is available, similar to the dark mode introduced in macOS Mojave. How can I check whether the user has enabled the system-wide dark mode?
Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
35
votes
4 answers

How to prevent iOS 13 Dark Mode from breaking emails

We have an e-commerce app that sends out order details when a purchase is made, and we just redesigned that email template. We've received reports over the past few days of some customers having half the text in the email missing. After finally…
jessica
  • 3,051
  • 2
  • 30
  • 31
33
votes
2 answers

UIColor return wrong values for dark mode colors

I have a custom UITextField subclass which changes its border color when typing something in it. I'm listening for changes by calling self.addTarget(self, action: #selector(textFieldDidChange(_:)), for: .editingChanged) and then, in…
ov1d1u
  • 958
  • 1
  • 17
  • 38
31
votes
5 answers

How to force disable iOS dark mode in React Native

The new iOS 13 update introduces an optional system-wide. This causes e.g. the StatusBar to have light text, which might become unreadable on a white background. It also breaks the iOS Datetime Picker (see DatePickerIOS or…
David Schumann
  • 13,380
  • 9
  • 75
  • 96
31
votes
4 answers

How do I easily support light and dark mode with a custom color used in my app?

Let's say I have a custom color in my app: extension UIColor { static var myControlBackground: UIColor { return UIColor(red: 0.3, green: 0.4, blue: 0.5, alpha: 1) } } I use this in a custom control (and other places) as the…
rmaddy
  • 314,917
  • 42
  • 532
  • 579
29
votes
10 answers

Implement dark mode switch in SwiftUI App

I'm currently looking into Dark Mode in my App. While Dark Mode itself isn't much of a struggle because of my SwiftUI basis i'm struggling with the option to set the ColorScheme independent of the system ColorScheme. I found this in apples human…
user12132829
28
votes
9 answers

How do I prevent iOS 13's Dark Mode from changing the text color in my app's status bar?

My navigation bar has a white backgroundColor and my status bar uses the dark textColor. When a user changes the iOS theme to Dark Mode, the status bar changes to white text on a white background. As a result, I can't see anything. How can I disable…
EvGeniy Ilyin
  • 1,817
  • 1
  • 21
  • 38
27
votes
4 answers

Programmatically detect dark mode in SwiftUI to display appropriate Image

In Assets.xcassets, there is an ability to add additional images that will automatically switch based on the Appearances. This works well for static images but I'm trying to figure out how to do this for downloaded images. Is there a way to either…
Zain
  • 1,569
  • 1
  • 13
  • 19
24
votes
3 answers

How to switch programmatically to dark mode swift

How can I make a switch to change programatically to dark or light mode in my iOS app? I'm using Swift.
TheCesco1988
  • 280
  • 1
  • 2
  • 10
21
votes
5 answers

how to use iOS 13 darkmode for wkwebview

I was working for iOS 13 with Xcode 11 beta. Is there any way to support dark mode on web views? I have created a color set for all the other views except WKWebviews. How to change web view background and text color for dark mode?
Vinu David Jose
  • 2,569
  • 1
  • 21
  • 38
19
votes
9 answers

Dark mode does not switch to a Dark mode background in Xcode

I have set up different backgrounds for 'Light/Dark Appearance' But when switching between Light/Dark mode within Xcode, my background always uses image from 'Any/Light Appearance'. Only colours set for icons changes accordingly. FYI: I'm…
marika.daboja
  • 881
  • 13
  • 27
1
2 3
18 19