AliSoftware / AliSoftware/Reusable

UITableViewHeaderFooterView - Warning with NibReusable

Aperta
#121 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Swift
Stelle
3k
Fork
231
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm trying to use the NibReusable for the HeaderFooterView for a TableView but i'm getting a warning in console:

`[TableView] Changing the background color of UITableViewHeaderFooterView is not supported. Use the background view configuration instead.`

But i'm not changing any background color in my view as you can see below. No warning if i'm just using a UIView without the dequeueReusable logic

```
import Reusable

class ShoppingListHeaderView: UITableViewHeaderFooterView, NibReusable {
@IBOutlet private weak var titleLabel: UILabel!
@IBOutlet private weak var iconImageView: UIImageView!
@IBOutlet private weak var button: UIButton!

override func awakeFromNib() {
super.awakeFromNib()

iconImageView.isHidden = true
iconImageView.tintColor = Asset.Colors.purple1F.color

titleLabel.textColor = Asset.Colors.black.color
titleLabel.textAlignment = .left
titleLabel.font = RawFonts.latoBold.font(size: 16)
}

func configure(text: String) {
titleLabel.text = text
}
}
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.