LoginSignup
3
3

More than 3 years have passed since last update.

iOS13のダークモードを対応したくない皆さまへ

Last updated at Posted at 2019-12-25
AppDelegate.swift
if #available(iOS 13.0, *) {
   window?.overrideUserInterfaceStyle = .light
}

これを書きましょう!

全体適用は ↑
application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool

画面ごとに切り替えたい場合は ↓
viewDidLoad()

UIViewController.swift
if #available(iOS 13.0, *) {
    overrideUserInterfaceStyle = .light
}

参考: https://stackoverflow.com/questions/56537855/is-it-possible-to-opt-out-of-dark-mode-on-ios-13

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3