Xcode 8 attribute & ldquo; Hidden & rdquo; Does not hide view in Interface Builder

advertisements

seems like Apple change how Interface Builder behaves in Xcode 8? Because when I check hidden in Attributes Inspector on a view in Interface Builder, that view is still visible.

This makes it very tedious to work with views where some views needs to be the view with the highest "z value", the front most view that is.

Is there some other way to show the green view in this example, than to change the order of them to the right (i.e. change their "z value")

In the image below hidden is checked, but I still don't see the green view below. You can download this trivial project at github

When the project is run, the green view is indeed shown, but the issues is that it is annoying when working in Interface Builder.

Am I missing something?


I have the same opinion on it and I also believe that it's annoying. I with they gave you the choice to update the actual storyboard before runtime or not but they didn't so for now we have to deal with it.

There is a quick alternative option though. Hidden will not update in the storyboard but alpha will. If you change the alpha it will update in the storyboard so if you want to see the view behind it just change alpha to 0. You can always change it back easily or if your doing it in code, instead of unhiding your view just change the code so the alpha is set to 1.