You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final class MyCustomWidget: UIView, NibOwnerLoadable {
…
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
self.loadNibContent()
}
}
The problem is I loose a link to xib root view and can access it via MyCustomWidget().subviews property only or by making a link to this view manually each time.
Why it is required? For example, I create a subview with labels which should be added to a view controller with a dark background. So I make subview's background dark in xib (to see light labels) and change this color back in runtime.
The text was updated successfully, but these errors were encountered:
From your readme:
The problem is I loose a link to xib root view and can access it via
MyCustomWidget().subviews
property only or by making a link to this view manually each time.Why it is required? For example, I create a subview with labels which should be added to a view controller with a dark background. So I make subview's background dark in xib (to see light labels) and change this color back in runtime.
The text was updated successfully, but these errors were encountered: