I have a custom view (xib
) that has a UIButton
inside of it, I made id IBDesignable
doing the following:
UserView.swif
I'm cringing at how dumb this is that doing what I'm about to tell you makes a difference, but you can try removing the breaking code out of
override func prepareForInterfaceBuilder() {
and only use it in
override func awakeFromNib() {
. I'm cringing, even more, when I report that its possible that your changes could still reflect in storyboard as desired when doing this.
You can identify the breaking code by commenting out all the lines and using a process of elimination to identify the breaking line.