Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UITableViewHeaderFooterView - Warning with NibReusable #121

Open
clementmorissard opened this issue Apr 19, 2022 · 0 comments
Open

UITableViewHeaderFooterView - Warning with NibReusable #121

clementmorissard opened this issue Apr 19, 2022 · 0 comments

Comments

@clementmorissard
Copy link

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
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant