Warning: Undefined array key 1 in /home/naoooooo8/naoya-ono.com/public_html/swift/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 12
Warning: Undefined array key 2 in /home/naoooooo8/naoya-ono.com/public_html/swift/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 15
Warning: Undefined array key 3 in /home/naoooooo8/naoya-ono.com/public_html/swift/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 18
Warning: Undefined array key 4 in /home/naoooooo8/naoya-ono.com/public_html/swift/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 21
Warning: Undefined array key 1 in /home/naoooooo8/naoya-ono.com/public_html/swift/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 24
Warning: Undefined array key 2 in /home/naoooooo8/naoya-ono.com/public_html/swift/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 27
Warning: Undefined array key 3 in /home/naoooooo8/naoya-ono.com/public_html/swift/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 30
Warning: Undefined array key 4 in /home/naoooooo8/naoya-ono.com/public_html/swift/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 33
iOS13から導入されたダークモード。
今後のアプリ開発では対応が必要になりますが、事情によりすぐに対応できない場合もありますよね。
そこで、今回は「とりあえず、今はダークモードを無効化できたらいいのになぁ・・・」なんて思っているあなたに、Xcodeの設定でダークモードを無効化する方法について紹介します。
ダークモードを無効化する方法
対象のプロジェクトを開いたら、まず「Info.plist」を開きます。

「+」ボタンをクリックして項目を追加します。

Keyには「User Interface Style」、Valueには「Light」を追加します。

設定はこれだけです。簡単!
シミュレーターでダークモードに設定しても、色が変わらないことを確認してください。
ただ、ダークモードは今後も需要が高まりつつあるので、どこかのタイミングできちんと対応するようにしましょう。



