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
This could help you.
override func viewDidLoad() { super.viewDidLoad() if #available(iOS 13.0, *) { // Always adopt a light interface style. overrideUserInterfaceStyle = .light } }