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
1
vote
2 answers

Keyboard does not change appearance in iOS dark mode

I am testing Dark Mode in iPhone 12 Pro (iOS 14.4). I enabled Dark Mode in Settings but my Keyboard remains the same. It does not appear in DarkMode. I have 2 questions: Do we need to write code to change the appearance of the Keyboard or OS…
Rohit Singh
  • 16,950
  • 7
  • 90
  • 88
1
vote
0 answers

CALayer displaying wrong SFSymbol image for light / dark mode

My first SO question so here goes... I'm very familiar with working with CALayer and its variants but this one has me stumped. Let's start with the code ( yes, I'm working in Objective-C )... - (void)setup { // a basic setup method, called from…
The Cooper
  • 11
  • 2
1
vote
1 answer

How can I programmatically access Dark mode colors when in light mode and vice versa in SwiftUI?

An accentColor can have an "Any Appearance" color and a "Dark Appearance" color. Lets say, I'm in light mode, how can I access the dark mode color programmatically without manually setting the color mode to dark mode?
ScottyBlades
  • 12,189
  • 5
  • 77
  • 85
1
vote
1 answer

React Native Paper Dark Theme on IOS

I want to use react-native-paper dark theme on my apps, however, all my are still had a white background and causing all the Text component unreadable because the text turns white in dark mode. I didn't use custom theming since the docs…
Ajeng
  • 39
  • 1
  • 6
1
vote
1 answer

iOS dark light mode not updating UIViewController

I am facing problem with a iOS project with Xcode 12.3. App is designed for both light and dark mode and it is working fine if we are changing light/dark mode while app is closed but if send app in background and change mode and resume app then…
Varun Naharia
  • 5,318
  • 10
  • 50
  • 84
1
vote
1 answer

Is it possible to use JavaScript to switch between light mode and darkmode on a page?

I can use @media (prefers-color-scheme: dark) or window.matchMedia('(prefers-color-scheme: dark)').matches to detect whether it's a dark mode the OS. However, is there any way that I can modify the status on my own with JavaScript? So that I can…
AGamePlayer
  • 7,404
  • 19
  • 62
  • 119
1
vote
1 answer

SFSafariViewController no dark mode with custom bar tint color

I call SFSafariViewController from my app to open myurl. I changed the bar tint color of SFSafariViewController. This works fine using: vc.preferredBarTintColor = UIColor.teal025 However when device changes appearance style mode from light to dark,…
geohei
  • 696
  • 4
  • 15
1
vote
0 answers

Unable to change preview to dark mode in SwiftUI (Xcode12)

I'm unable to see preview in dark mode. In the preview, the font color gets changed to white from black (as per dark mode) but the background color of the view is still white (making the text invisible). It's working fine on simulator though. I've…
Romit Kumar
  • 2,442
  • 6
  • 21
  • 34
1
vote
2 answers

How to implement a color scheme switch with the system value option?

I have implemented a dark/light mode switch in my app using the guide here on this thread. Sample code below: public struct DarkModeViewModifier: ViewModifier { @AppStorage("isDarkMode") var isDarkMode: Bool = true public func…
fankibiber
  • 729
  • 1
  • 6
  • 19
1
vote
1 answer

How to change just my app between light and dark mode

I want to have a dark mode option within the settings page of my Xcode swift app. Is it possible to change dark mode just for the app, on all view controllers in the app? I have my dark colors selected in 'Assets.xcassets'
Henhen1227
  • 392
  • 1
  • 3
  • 12
1
vote
2 answers

How to implement DarkMode Into app in Swift

sorry if that question was asked but couldn't find the right answer across stackOverFlow so I'm asking .. I'm trying to implement dark mode into my app, but unfortunately it doesn't work well for me while using tableviews, it does changes my…
Avi Sabag
  • 61
  • 8
1
vote
0 answers

Change iMessage Sticker Pack Asset based on Light/Dark Mode?

I am wondering if it's at all possible to change an asset used in an iMessage sticker pack based on Light/Dark Mode like you can in a normal asset. If so, how can I do that? And would it require using a custom sticker presenter instead of the…
1
vote
1 answer

Force light mode on CupertinoTextField Flutter

I'm developing a mobile app in Flutter, and until now I only designed a light mode UI and everything is working fine, but if I try to add a CupertinoTextField, since my phone is in dark mode it will appear black. Is there an easy way to force it to…
ssoBAekiL
  • 635
  • 3
  • 13
1
vote
1 answer

How to toggle between Light & Dark Mode in Xamarin.iOS?

Most of the information I've found online is dealing with Xamarin Forms, Is it possible to toggle between Light & Dark Mode using only Xamarin.iOS? I've added this piece of code to my ViewDidLoad Method in one of my controllers to change it to Dark…
Nantourakis
  • 107
  • 1
  • 8
1
vote
1 answer

Force the Dark Mode to only one UI Element in Swift by storyboard or programmatically

I want to set the dark mode fixed for one UI element. So I want that all the app switch automatically from dark to light but one element in my case a UISegmentedControl stays in dark mode. Is it possible?
chiappins
  • 202
  • 3
  • 16