Warning frame for "Navigation bar" will be different at run time appears in Xcode 8 Swift 3

Danny picture Danny · Sep 21, 2016 · Viewed 23.5k times · Source

Before I've upgraded to Xcode 8 I haven't seen this error in such case. I have different Navigation Controllers. For all of them I see an error Frame for "Navigation bar" will be different at the run time. Navigation bar "Expected: width=384, Actual: width=375. In reality these Navigation Controllers doesn't have Navigation bar. Navigation bar exists for subviews. Anyway I could solve it by tick and untick the checkbox Shows navigation bar in Attributes inspector. But unfortunately every time I reopen Main.storyboard this warning appears again. Also if I click on yellow triangle and then on update frames nothing happen.

enter image description here

Answer

Kai picture Kai · Sep 22, 2016

Warning will disappear if you change the property "Simulated Size" to "Freeform".