From 691038298192c89c8e3145c9af1c898b8a92fd74 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 20 Apr 2019 11:43:05 -0500 Subject: [PATCH] Change how section header background color is set to clear up console warning. --- iOS/Master/Cell/MasterTableViewSectionHeader.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iOS/Master/Cell/MasterTableViewSectionHeader.swift b/iOS/Master/Cell/MasterTableViewSectionHeader.swift index a2b468fab..ed3d6ae94 100644 --- a/iOS/Master/Cell/MasterTableViewSectionHeader.swift +++ b/iOS/Master/Cell/MasterTableViewSectionHeader.swift @@ -80,7 +80,9 @@ class MasterTableViewSectionHeader: UITableViewHeaderFooterView { private extension MasterTableViewSectionHeader { func commonInit() { - backgroundColor = AppAssets.tableSectionHeaderColor + let view = UIView() + view.backgroundColor = AppAssets.tableSectionHeaderColor + backgroundView = view addSubviewAtInit(unreadCountView) addSubviewAtInit(titleView) }