[Swift5] How to avoid applying dark mode (dark appearance) in code

Implementation method

//Avoid applying dark mode
self.overrideUserInterfaceStyle = .light

This will always be in light mode (bright appearance).

Summary

This way you can easily avoid applying dark mode.

However, Apple recommends applying dark mode to iOS apps, so you need to apply the dark mode settings to your app at some point.

Treat this method as a temporary response!

Recommended Posts

[Swift5] How to avoid applying dark mode (dark appearance) in code
How to implement UICollectionView in Swift with code only
[swift5] How to specify color in hexadecimal
[Swift] How to fix Label in UIPickerView
How to call Swift 5.3 code from Objective-C
How to overwrite Firebase data in Swift
How to color code console output in Eclipse
How to add sound in the app (swift)
How to execute tasks in parallel in Swift in Swift Package
How to display a browser preview in VS Code
How to write good code
[Swift] How to use UserDefaults
How to use Swift UIScrollView
How to set character code and line feed code in Eclipse
How to implement infinite scrolling (page nate) in Swift TableView
How to select a specified date by code in FSCalendar
How to change BackgroundColor etc. of NavigationBar in Swift UI
Only this! How to prevent forgetting code format in team development
[Swift] Create UIButton class in code
How to use Lombok in Spring
How to find May'n in XPath
How to hide scrollbars in WebView
How to iterate infinitely in Ruby
How to run Ant in Gradle
How to master programming in 3 months
How to learn JAVA in 7 days
How to change kube-proxy to ipvs mode.
How to install Bootstrap in Ruby
[Swift] How to use SwiftLint (cocoapods)
[Swift] How to use Unwind segue
How to use InjectorHolder in OpenAM
[Swift] How to send a notification
How to introduce jQuery in Rails 6
How to use classes in Java?
How to return Rails API mode to Rails
How to name variables in Java
How to set Lombok in Eclipse
How to write easy-to-understand code [Summary 3]
[Swift] How to replace multiple strings
[RSpec] How to write test code
How to concatenate strings in java
How to install Swiper in Rails
[Swift] How to pass the Label value in the selected collectionViewCell to the destination TextField
[Swift] How to set an image in the background without using UIImageView.
[swift5] How to change the color of TabBar or the color of item of TabBar with code
Shorten the UUID to base64 in Swift.
How to implement date calculation in Java
How to implement Kalman filter in Java
Multilingual Locale in Java How to use Locale
How to change app name in rails
How to use custom helpers in rails
How to reflect seeds.rb in production environment
How to use named volume in docker-compose.yml
How to filter JUnit Test in Gradle
[Android] How to deal with dark themes
How to insert a video in Rails
How to include Spring Tool in Eclipse 4.6.3?
How to add jar file in ScalaIDE
How to do base conversion in Java
[Swift] How to use Tab Bar Controller
How to have params in link_to method