awkward / Tatsi

A drop-in replacement for UIImagePickerController with the ability to select multiple images and/or videos
MIT License
110 stars 30 forks source link

Wrong navigation bar padding when presented as second modal view controller #36

Open kuchmiyalex opened 4 years ago

kuchmiyalex commented 4 years ago

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 commented 4 years ago

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()
        }
    }