Tatsi icon indicating copy to clipboard operation
Tatsi copied to clipboard

Wrong navigation bar padding when presented as second modal view controller

Open kuchmiyalex opened this issue 5 years ago • 1 comments

This seems to be an iOS 13 bug but easy fix would be appreciated.

https://forums.developer.apple.com/thread/121861

Simulator Screen Shot - iPhone 11 Pro Max - 2020-02-24 at 14 32 00

kuchmiyalex avatar Feb 24 '20 12:02 kuchmiyalex

Adding these lines in TatsiPickerViewController fixed current issue


    public override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        if #available(iOS 13.0, *) {
            self.view.layoutIfNeeded()
            self.view.updateConstraintsIfNeeded()
        }
    }

kuchmiyalex avatar Feb 24 '20 12:02 kuchmiyalex