Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
488 views

HTML Email template dark mode background issue on iPhone 11, 12 Mini version only, under editable text

Our html/oft email template have issues in the dark mode view for iPhone 11, 12 Mini version only. The issue occurs under the editable text only, where it should show black background color under the ...
Laxman..'s user avatar
0 votes
1 answer
104 views

How to follow or ignore the iPadOS's color scheme (dark/light)

I have a question, how can I ignore or follow the iPadOs's color scheme? I searched all over the web and couldn't find an answer that could help me. What I expect: I created a Picker to choose between ...
N3v1's user avatar
  • 53
1 vote
2 answers
411 views

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.
Indrajeet4192's user avatar
1 vote
1 answer
1k views

.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. <RadioButton ...
Cef's user avatar
  • 829
2 votes
0 answers
394 views

Ionic angular app - dark mode toggle not affects part of components in iOS

I'm writing Ionic app and I have some strange problem with manual selecting dark/auto/light mode but only on iOS. So, I have page called "Settings" in my app where user can find 3 buttons ...
hvma411's user avatar
  • 379
-1 votes
2 answers
892 views

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

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 ...
Nayan Dave's user avatar
  • 1,680
1 vote
2 answers
3k views

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. ...
Andrew Royal's user avatar
1 vote
1 answer
123 views

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 ...
Eli017's user avatar
  • 91
0 votes
1 answer
94 views

Swift Dark mode supported on a presenter model

I have a struct UI model. I create this model on ViewModel. I put an example below. TextRow(title: "Come", font: .myFont(.bold, size: 14), color: .appBlack, alignment: .center) I use that ...
ryla's user avatar
  • 69
0 votes
0 answers
122 views

Building sepia theme for mobile browser using CSS

I am building an iOS Safari extension that inverts to different themes (Gray, Dark, and Sepia). Gray and Dark work well, but it doesn't work as expected for the Sepia one. It change colors of not only ...
Usama Fouad's user avatar
0 votes
1 answer
407 views

Force ViewController light mode but keep WKWebView mode adaptable

I'm using the newest version of Xcode for my iOS app. I'm stuck with one small task since hours: I want to force my View Controller to always stay in light mode, also if device is in dark mode. I'm ...
David's user avatar
  • 3,168
-2 votes
1 answer
660 views

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 ...
David's user avatar
  • 3,168
0 votes
1 answer
103 views

Swift navigation controller black in light mode

faced such an issue that the navigation controller is always black even if I change the appearance to light. Here is how I create it: class TabBarController: UITabBarController { override func ...
Artiom's user avatar
  • 623
1 vote
2 answers
4k views

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 ...
bartsamuel's user avatar
1 vote
2 answers
556 views

How to set dark mode for NSToolbar in macOS Catalyst app?

In my iOS/macOS app the user can choose between a light and a dark appearance. This is done by setting the overrideUserInterfaceStyle of the app window, for example window.overrideUserInterfaceStyle = ...
iosdeveloper's user avatar
0 votes
1 answer
208 views

How to add DarkMode to Navigator in App.js

I have to add DarkMode switch to one of the Screen which applies to all the screen in React Native IOS App. Below is the App.js where I wrap my main navigator inside ThemeProvider import React from '...
Poornima Gurudath's user avatar
4 votes
0 answers
378 views

PDFKit dark mode interface style for pdf document

Is there a way to adapt to pdf document with the dark mode of containing view? Below doesn't change any aspect of PDF document. let pdfView = PDFView() pdfView.overrideUserInterfaceStyle = ....
nvn's user avatar
  • 41
1 vote
2 answers
622 views

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 ...
Rohit Singh's user avatar
  • 18.1k
4 votes
3 answers
3k views

WKWebView Dark and Light Mode with dynamic URL in Swift 5

I created WKWebView that doesn't have one url. User use this WKWebView as Safari means user can search anything on WKWebView. I am facing one issue when I change dark and light mode my web view will ...
Yogesh Patel's user avatar
  • 2,007
0 votes
0 answers
234 views

Set Color Dark & Light Mode for label background

class func setColorLightDarkMode() -> UIColor { let aColor = UIColor(named: "StatusBackGroundColor") ?? .gray return aColor } label.backgroundColor = setColorLightDarkMode() ...
kiran's user avatar
  • 4,379
5 votes
1 answer
4k views

Swift: If traitCollection.userInterfaceStyle == .unspecified, how do I determine if it's in light or dark mode?

In the settings of my app, the user can choose between 3 system themes: light, dark, or default (which matches the phone's theme). I do this by finding the keyWindow and setting ...
helpinghand's user avatar
0 votes
2 answers
716 views

reverse .label in swift

I want my text to appear .white when in normal mode and .black when in dark mode. How do I do that? .label only makes the text .black in normal and .white in dark mode but I want it the other way ...
JuFa512's user avatar
  • 139
0 votes
1 answer
1k views

Override modal view controller elevated background color?

When in dark mode and presenting a view controller modally (or popovers), even if the view's background color is say black, it gets overridden to the elevated system background color (a dark grey when ...
user14664032's user avatar
0 votes
2 answers
951 views

Custom elevated background color for iOS dark mode

In the dark mode section of the Human Interface Guidelines, Apple describes that there is basically three background colors when you use the system background - light, dark, and dark elevated (which ...
BlackWolf's user avatar
  • 5,519
6 votes
1 answer
1k views

UIViewController userInterfaceStyle is always light

When darkmode is enabled, UIViewControllers always use light mode. viewController.traitCollection.userInterfaceStyle is always Light but window.traitCollection.userInterfaceStyle is Dark. ...
Martin Vandzura's user avatar
2 votes
2 answers
5k views

Change background colour for html emails in dark mode on mobile phoner

I am trying to get the HTML email to have normal white background even when a mobile dark mode is turned on, I have added the below meta and media queries meta name="color-scheme" ...
Anitha's user avatar
  • 21
0 votes
2 answers
1k views

Swift Automatically Switch App’s Theme At Sunset

There are several apps on the App Store that have the option in the app to automatically switch to dark mode. I’m assuming there is an easy way to implement this, but I can’t seem to find anything ...
firebolthappy's user avatar
0 votes
1 answer
406 views

In App Settings dark/light mode, doesnt change font color of time, date, notifications

When a user changes from dark/light mode from within the app, the top banner information does not change with it. Why? @IBAction func segmentedControlButtonClickAction(_ sender: UISegmentedControl) { ...
letsCode's user avatar
  • 2,876
8 votes
1 answer
4k views

Is there a way to observe a change between Dark and Light mode on iOS using Notifications instead of the standard Delegate function?

The standard way to check for a change between Dark and Light modes on iOS is with a view-level delegation function: override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?...
Ethan Allen's user avatar
  • 14.7k
0 votes
1 answer
913 views

Dark mode not showing up in Xcode Swift

I'm trying to adjust my colour scheme when enabling dark mode but it doesn't seem to work, not really sure what I'm doing wrong. I have set an colour asset: And then applied it to the background of ...
Alan Lau's user avatar
  • 115
2 votes
2 answers
1k views

SwiftUI Dark Mode not applying to sheets

I'm using a toggle and @AppStorage to change the preferredColorScheme in my app. Dark mode and light mode works fine on Views other than sheets and full screen modals. struct MyApp: App { @...
mucahid-erdogan's user avatar
1 vote
0 answers
347 views

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)...
The Cooper's user avatar
3 votes
1 answer
2k views

Testing Dark Mode using snapshot testing

Any leads how can we use Snapshot testing to test darkmode implementation? Or any other testing strategy for dark mode on iOS. When XCUITest is one of the options along with XCTest (unit-test). The ...
user804417's user avatar
1 vote
1 answer
2k views

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 ...
ScottyBlades's user avatar
  • 13.7k
3 votes
1 answer
1k views

Color change from light-mode to dark-mode not working in SwiftUI on real device

Using Swift5.3.2, iOS14.4.1, Xcode12.4, I try to make a custom-Color change when switching from light to dark mode in SwiftUI. Here is my code: import SwiftUI struct MyTestView : View { var ...
iKK's user avatar
  • 6,934
5 votes
2 answers
1k views

Xcode: Dark mode doesn't work if the color is in the framework

On xcode I work within a workspace where there is a basic project and a framework. All colors are defined within the framework. When I configure a label with the color assets of the framework from the ...
momomorez's user avatar
  • 535
0 votes
1 answer
1k views

Swift - Changing modes using overrideUserInterfaceStyle in a view controller does not update UITraitCollection.current.userInterfaceStyle in a UIView

In this view controller, there is a button that changes between light and dark mode using the following code: @IBAction func toggleModeButtonAction(_ sender: Any) { if let appDelegate = ...
JustWorkAlready's user avatar
1 vote
1 answer
1k views

React Native Paper Dark Theme on IOS

I want to use react-native-paper dark theme on my apps, however, all my <View> are still had a white background and causing all the Text component unreadable because the text turns white in dark ...
Ajeng's user avatar
  • 37
0 votes
0 answers
455 views

Changing MKAnnotationView image tintColor

I am trying to set the tint color of my MKAnnotationView image so that it behaves in dark mode- pinView = mapView.dequeueReusableAnnotationView(withIdentifier: WeatherMapViewController....
David's user avatar
  • 305
1 vote
1 answer
2k views

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 ...
Varun Naharia's user avatar
3 votes
5 answers
9k views

SwiftUI: How to let the user set the app appearance in real-time w/ options "light", "dark", and "system"?

I am currently trying to implement a solution in an app where the user is supposed to be able to switch the app's appearance in real-time with the following options: System (applying whatever ...
Malburrito's user avatar
  • 1,128
3 votes
1 answer
5k views

Swift change text color to dark/lightmode

I am trying to change the text color in a UITextView from light grey to white/black. So the new text color should be white when the dark mode is on and the text color should be black when the light ...
Fabian Müller's user avatar
1 vote
1 answer
3k views

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 ...
AGamePlayer's user avatar
  • 7,646
2 votes
1 answer
308 views

Detect dark mode in XCUI test on real devices

I'm trying to find a way to detect whether a phone is in dark mode or not in an XCUI test. So far I've got this: private func darkMode() -> Bool { if #available(iOS 13, *) { ...
Ishmael7's user avatar
  • 173
1 vote
1 answer
680 views

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 ...
geohei's user avatar
  • 802
0 votes
2 answers
101 views

Cant change the color of programmatically created UINavigationController on dark mode

Im creating navigation view programmatically and I want white navigation bar on dark mode. I thought I did everything right but on dark mode im still getting dark navbar let navVC = ...
MertGurcan's user avatar
0 votes
0 answers
112 views

In FirebaseUI for iOS, forcing dark mode causes the Apple Icon to blend in with the background

I am using FirebaseUI for iOS. The "Sign In With Apple" icon is blending in with the background. I am forcing dark mode like so: HomeView() .preferredColorScheme(.dark) When the OS is set ...
Fred's user avatar
  • 517
1 vote
0 answers
262 views

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 ...
Romit Kumar's user avatar
  • 3,140
2 votes
1 answer
2k views

Tab Bar Controller: Icon and Colors when switching to dark mode

When I switch my app to dark mode this is what happens to the tab bar. How can i make the tapped icon fully visible in the dark mode environment? im using the runtime property tintColor to ...
karalis1's user avatar
  • 225
3 votes
1 answer
1k views

SwiftUI ButtonStyle animation causes UI not to update in App Switcher snapshot when system appearance changes

In my app I have a button that I want to animate to scale down when it's touched. To do this, I created a custom ButtonStyle with an explicit animation. This works as intended but it introduced a ...
Jordan H's user avatar
  • 55k

1
2 3 4 5 6