I'm working on a project with 100+ source files. I decided to implement a reusable custom view whose layout I can preview on Interface Builder, as described in this question and many others.
However, I can not get Interface Builder to refresh (render) my view.
As is usual, I am placing a stock UIView
from the object library into the view heirarchy in Interface Builder, and changing its class to my own in the Identity Inspector. The field "Desginables" (right under "Inherit Module from Target") appears as "Up to date".
However, the internal layout of my custom view is not previewed. (it contains a textfield, a label, and a custom background color).
Choosing Editor > Refresh All Views from the main menu triggers a build, and a momentary change to "Designables Updating", but when the build finishes, my custom view remains blank.
I tried creating a new, minimal project (from the Sinlge View Application project template) and transplanted my .xib and custom class source file, untouched. Rest assured, when placed inside a xib or storyboard, they are previewed as expected.
I know this is perhaps a long shot, but is this a known issue of Xcode with large projects?
Or is perhaps some other setting I should look for in my existing project that may be interfering with the rendering of designables?