Closed remirobert closed 8 years ago
Hi @remirobert . If you want to set height and backgroundColor you can see the following codes.
class HeaderSectionTripViewModel: HeaderFooterViewModel {
init() {
super.init(view: HeaderSectionTrip.self)
height = 50
}
}
class HeaderSectionTrip: HeaderFooterView, HeaderFooterViewType {
typealias ViewModel = HeaderFooterViewModel
override func awakeFromNib() {
super.awakeFromNib()
backgroundColor = .yourColor()
}
override func configure() {
}
}
@nghialv thank you so much for your help !! It works
I am back for add more precision about this issue.
In fact you need to had an another UIView, acting like a container. That's it. 🙀⚠️🎉
Hello, I need to use an HeaderFooterView on a Section.
I created a model view :
and then my HeaderFooterView view :
Now this how I add my section header :
But my HeaderView is transparent. And also I need to change the height. thanks in advance for your help.