[ios] add missing "styleName" in UITableViewHeaderFooterView in "applyTheme" method for correct header rendering

Signed-off-by: Kiryl Kaveryn <k.kaveryn@brainq.com>
This commit is contained in:
Kiryl Kaveryn 2023-09-22 12:38:22 +04:00 committed by Alexander Borsuk
parent 98cde7b983
commit a18f40343c

View file

@ -1,5 +1,8 @@
extension UITableViewHeaderFooterView {
@objc override func applyTheme() {
if styleName.isEmpty {
styleName = "TableViewHeaderFooterView"
}
for style in StyleManager.shared.getStyle(styleName)
where !style.isEmpty && !style.hasExclusion(view: self) {
UITableViewHeaderFooterViewRenderer.render(self, style: style)