AliSoftware / AliSoftware/Reusable

Feature request - access to root xib view

未關閉
#127 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Swift
星號
3k
分支
231
PR 合併指標
30 天內沒有已合併 PR

描述

From your readme:
```
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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。