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
2
votes
0 answers

traitCollectionDidChange not called on custom UIView subclass when switching to Dark Mode

I have created a custom UIImageView subclass which adds some custom drawing. This works fine but now I would like to adapt the class to work with iOS 13 Dark Mode. I added traitCollectionDidChange: to the class to get notified of style changed and…
Andrei Herford
  • 17,570
  • 19
  • 91
  • 225
2
votes
3 answers

how to Disable Dark mode in in my application

I just want override dark mode UI in my application. I added UIUserInterfaceStyle is Light. But i am not sure it is not working. Is there any other option?
Suyash
  • 365
  • 5
  • 18
2
votes
2 answers

Objective-C - Change programmatically Gradient Background Color UIViewController When iOS 13 Dark Mode changed

I am implementing the features for the management of the Dark Mode of iOS 13 in my app .. I have a problem for the background of my ViewController. My view controller has a background gradient color obtained with CAGradientLayer. I managed to change…
kAiN
  • 2,559
  • 1
  • 26
  • 54
2
votes
2 answers

Xamarin Forms IOS 13 UIUserInterfaceStyle -Dark Mode

How can I make my app responsive with this "NEW FEATURE" . I want to have an only light mode for now. I saw this UIUserInterfaceStyle style = UIUserInterfaceStyle.Light; How to activate this on my Xamarin Forms app
Pxaml
  • 651
  • 2
  • 12
  • 38
2
votes
3 answers

UIView's shadowpath color doesn't change

I have a UIView and I set a shadowPath for it like this: func addShadow() { let cornerRadius: CGFloat = self.containerView.frame.height/2 self.containerView.layer.shadowPath = UIBezierPath(roundedRect: self.containerView.frame, cornerRadius:…
Arash Etemad
  • 1,827
  • 1
  • 13
  • 29
2
votes
2 answers

How can I implement dark mode in react native app

I want to add dark mode to my app. But the documentations are confusing. Is there any easy way to understand how to implement the dark mode. I also want the darkmode to stay active in my all app screens. And need to implement the mode in both ios…
user8583769
2
votes
3 answers

Implementing dark mode in React Native sensibly

I'm trying to add dark mode support to my React Native app. I will have a flag in a mobx store mode which will be light or dark as appropriate. In order to tie this into an existing app, I wanted to, if possible, keep the existing style definitions…
besthorse
  • 31
  • 1
  • 4
2
votes
1 answer

Darkmode and multiwindows / scenes

i'm trying to implement ios13 darkmode within multi scene application. Unfortunately when i dismiss a scene dragging it over the screen edge the method traitCollectionDidChange is called several times with always different values, causing my UI to…
Fabiosoft
  • 1,141
  • 14
  • 32
2
votes
1 answer

Comparing Two UIColor DynamicProvider (iOS13) Returns False

Xcode 11 / iOS 13 When I initialize 2 UIColor objects using UIColor(dynamicProvider:) I cannot use color1 == color2 anymore since (I think) it is not capable of comparing the closure. This issue also breaks the comparison of NSAttributedStrings…
blackjacx
  • 9,011
  • 7
  • 45
  • 56
2
votes
0 answers

Varying button title color for dark interface in Xcode Builder for tvOS

I am trying to vary the button title color for a dark interface in tvOS dark mode with XCode interface builder but it applies for all modes as default UIButton title color. I clicked "vary for dark interface as usual", and then clicked on "done…
Quentin C
  • 307
  • 3
  • 13
1
vote
2 answers

What is difference between Dark Mode and Dark Theme for any website and application?

I am new in UI development, I was asked above question in the interview. I got confuse because as per my understanding there is no difference. Kindly guide me is there is any difference.
1
vote
1 answer

.NET Maui radio button text not visible in dark mode?

Anyone else notice that the RadioButton Content (at least on iOS) ignores the TextColor attribute? In Dark mode it displays the content as white text no matter what I set it to.
Cef
  • 661
  • 1
  • 6
  • 26
1
vote
2 answers

Force text color in Gmail iOS on dark background using Mailchimp

I have a template that I am designing in Mailchimp for email. The footer of the mail is dark blue with white text. By default, the Gmail iOS app flips the contrast, so we lose all of our nice styling. I have been able to switch the background back…
1
vote
1 answer

MFMessageComposeViewController: Cannot Style "Cancel" Button in Dark Mode

I'm currently trying to style the "cancel" button that is in the top right corner (the navigation bar and the button are both grey) and I am having no luck. I've tried calling several different methods and none have worked. My project builds for…
1
vote
1 answer

Dark mode Gmail signature randomly changing PNG (raster) image colours from black to white

I have a Gmail (web app) based email signature with PNG images hosted on a server (please see the code below). I was just updating this signature to accommodate for "dark mode" and suddenly the custom Facebook PNG icon turned white (should stay…