Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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


As mentioned here you can fix this by toggling Adjust Scrollview Insets on/off.


I have changed from View as: iPhone 6S to iPhone 5S, then changed back to iPhone 6S, and Xcode did all the changes to remove the warning.


This worked for me at Xcode 8.3.1 After restarting Xcode, it would still work.

enter image description here

  1. Select Navigation Controller

enter image description here

  1. Go to Show the Size Inspector

enter image description here

  1. Change Simulated Size to Freeform

enter image description here

  1. Change Simulated Size back to Fixed

enter image description here

  1. Then the warnings disappear.

enter image description here