of NibDesignable.
Then everytime this line gets called
``return nib.instantiate(withOwner: self, options: nil)[0] as! UIView // swiftlint:disable:this force_cast it calls my `required init?
and I end up having an infinite loop.
I used the same type of initialisation in another view (not in a table view cell) and it works fine.
Any idea what's wrong?
Thanks
I have a
UITableViewCell
that contains two UIView both extendingNibDesignable
.In each of those view I have an initializer like the following.
This init triggers
of
NibDesignable
. Then everytime this line gets called``return nib.instantiate(withOwner: self, options: nil)[0] as! UIView // swiftlint:disable:this force_cast
it calls my `required init?