Search code examples
iosxcodeuinavigationcontrollerxcode-storyboard

How to show navigation bar in Interface Builder preview storyboard (assistant editor)


I am doing autolayout works in Storyboard and previewing the result in Assistant Editor > Preview

How can I show navigation bar in the preview?


Solution

  • Take a dummy view and give its height equals to the navigation bar height. (navigation bar height remain same in each device). when u done ur pixel perfection than uncheck installed from attribute inspector of that view or just remove the view.