Everything used to work great until yesterday I updated Xcode to version 8.
If I don't use any constraints, I can see the buttons but when I apply constraint(s) to the buttons they disappear, no matter what or how many constraints (height, vertical spacing, trailing etc...) I apply.
When I tap buttons, they act normal (events are always sent so I assume they are actually located there(?)). I tried changing text color, background color, (even adding a new UIButton) but ended with no luck. I can't see the buttons. When I change the background color of
Debug View Hierarchy
I was missing the point of setting UIButton class to my custom class. I checked my custom class and have seen that I set corner radius on
awakeFromNib() method. I called
layoutIfNeeded() before I set corner radius which was the solution in my case.