AliSoftware / AliSoftware/Reusable

Feature request - access to root xib view

Aberta
#127 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Swift
Estrelas
3k
Forks
231
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.