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
0
votes
1 answer

Is is possible to detect either user has chosen dark mode on iPhone from xcode 10.x

I am still using the xcode 10.2.1 and haven't upgraded to xcode 11 because of some other issues. Now I want to detect that users who are using iOS 13 has chosen dark mode or light mode as their app settings. As per apple document, If developer…
0
votes
0 answers

ios13: I want to get the selected device mode (dark mode / light mode ) inside my application

Currently i have enabled dark mode in my iphone. but UITraitCollection.current.userInterfaceStyle always returns current mode as "Unspecified". I want to get the device/system/os mode that is currently selected. if…
0
votes
2 answers

How to set iOS 13 dark mode large title color?

In my app i use let navigationBar = UINavigationBar.appearance() navigationBar.largeTitleTextAttributes = [ NSAttributedString.Key.font: UIFont.SFProDisplay(ofSize: 34, weight: .bold), NSAttributedString.Key.foregroundColor:…
Nike Kov
  • 12,630
  • 8
  • 75
  • 122
0
votes
1 answer

How to make UITabBar NOT translucent while using iOS 13 Dark Mode?

When I set the background color of a UITabBar iOS automatically lightens this color since the default UITabBar is translucent. But I would like to use a UITabBar which is NOT translucent. In iOS 12 and below I solved this by setting a background…
Andrei Herford
  • 17,570
  • 19
  • 91
  • 225
0
votes
1 answer

How to support dark mode for a UIlabelTextColor in iOS 13.x?

I Want the text color of UIlabel to be yellow on dark mode and black in normal mode.
Bablu Joshi
  • 379
  • 1
  • 5
  • 19
0
votes
1 answer

How do I change the default status bar color when overriding system UI style in swift

When I override overrideUserInterfaceStyle to light and dark mode is set to on, on the device, it is not changing the status bar style to .lightcontent. overrideUserInterfaceStyle = .light …
user11735053
0
votes
1 answer

Xcode 11 Simulator - SIGABRT when checking for darkmode active

I'm currently adapting my app to be compatible with the new ios 13 features. I have some color values stored in Firebase Remote Config, for light and for dark mode, and I would like to use them depending on the user's setting, however when I access…
IDMatt
  • 75
  • 10
0
votes
1 answer

systemBackGroundColor is not working in Lightmode in colorassets

I am trying to add new color to my color assets, where the light mode consists of systemBackGroundColor and darkmode consists of a customColor. But when I select systemColor for lightmode instead of getting white Color I am getting black color in…
user9978348
0
votes
0 answers

ios13, darkmode add imagePickerView

I need to add an imagePicker.view to the view instead of presenting it. But when the image picker view comes up, I see a white background in Darkmode. Is this a bug? Or is there a way to fix it? import UIKit class ViewController: UIViewController,…
0
votes
1 answer

iOS13 how to adapt dark mode about image?

If I do not add a image into asset ,I just add the image into my Xcode project bundle ,how I name the image so that Xcode can judge it is a dark mode`s image!
-1
votes
2 answers

How to change UIColor according to UserInterfaceStyle(Dark Mode/Light Mode) in UIView extension in swift [5+]?

I was creating the method in UIView extension and I needed to change UIColor according to UIUserInterfaceStyle i.e. separate UIColor for both Dark & Light mode Interface. Usually, in UIViewController class traitCollectionDidChange method is…
Nayan Dave
  • 1,078
  • 1
  • 8
  • 30
-1
votes
1 answer

Submit apple store for review DarkMode UIUserInterfaceStyle key in info.plist

I have set force lite mode (Opting out of dark mode) by the following code writes in info.plist UIUserInterfaceStyle Light I'm trying to submit IOS application to an apple store for review process. Is there any problem to upload the application?
-1
votes
1 answer

Create tintable image with solid colour, so that it can adapt Dark and Light modes

I need to create UIImage (bitmap?) filled with a solid colour so that it can be tinted and thus support Dark and Light mode changes Is there a way to do this in Swift?
eja08
  • 4,600
  • 3
  • 13
  • 19
-1
votes
1 answer

How to avoid or prevent dark mode in app?

iPhone device theme is Dark. So my app theme getting some changes because of this. Can i prevent this dark mode in my app? if yes How?
Mohit Tomar
  • 5,173
  • 2
  • 33
  • 40
-2
votes
1 answer

overrideUserInterfaceStyle not working in AppDelegate

I'm building an iOS app with the newest version of Xcode. If I set overrideUserInterfaceStyle = .light to a View Controller, it will get set to light mode, also if dark mode is enabled. But If I put this code in AppDelegate like this: func…
David
  • 2,898
  • 3
  • 21
  • 57
1 2 3
18
19