iOS13 White Color issue with textColor of UIKit

后端 未结 2 755
慢半拍i
慢半拍i 2020-12-21 01:48

Before iOS13 application Layout working as excepted. After latest dark theme and light theme update by apple in iOS13.1, Their is so, many issue facing in e

相关标签:
2条回答
  • 2020-12-21 02:20

    This could help you.

    override func viewDidLoad() {
        super.viewDidLoad()
        if #available(iOS 13.0, *) {
            // Always adopt a light interface style.
            overrideUserInterfaceStyle = .light
        }
    }
    
    0 讨论(0)
  • 2020-12-21 02:33

    Swift 5 with iOS 13

    Common solution which is work for my whole application without perform any file specific changes.

    Work for Xcode 11 or higher version, Build upload fail on prior version of Xcode 11.

    Set UIUserInterfaceStyle to 1 in your info.plist file.

    OR

    AppDelegate.swift

        if #available(iOS 13.0, *) {
            window?.overrideUserInterfaceStyle = .light
        } else {
            // Fallback on earlier versions
        }
    

    We have to specify user interface style light for any existing application.

    0 讨论(0)
提交回复
热议问题