13 Replies
      Latest reply on Mar 24, 2020 2:10 PM by San Marc
      DaleOne Level 1 Level 1 (0 points)



        There is a bug in iOS 13 that cause the navigation bar of the second controller presented modally to have a wrong layout.


        To reproduce this error present a navigation controller modally (Form Sheet). The navigation bar of this controller will be ok.

        From this controller present another navigation controller modally. The toolbar of the second controller will have a wrong layout. The height is wrong and the button items are not properly aligned (see the image below).




        The problem disappear after rotating the device.


        To fix this issue  you need to manually call the navigation bar setNeedsLayout in the viewWillAppear method of the second controller:


        override func viewWillAppear(_ animated: Bool) {
             if #available(iOS 13.0, *) {


        Hope this helps.