Adds section header background view

Stops collapsing sections from appearing under the section view header.
This commit is contained in:
Stuart Breckenridge 2019-06-20 17:24:23 +08:00
parent 7b99c0f4af
commit ec609bbe7d
1 changed files with 6 additions and 0 deletions

View File

@ -113,6 +113,7 @@ private extension MasterFeedTableViewSectionHeader {
addSubviewAtInit(titleView)
updateDisclosureImage()
addSubviewAtInit(disclosureView)
addBackgroundView()
}
func updateDisclosureImage() {
@ -134,4 +135,9 @@ private extension MasterFeedTableViewSectionHeader {
disclosureView.setFrameIfNotEqual(layout.disclosureButtonRect)
}
func addBackgroundView() {
self.backgroundView = UIView(frame: self.bounds)
self.backgroundView?.backgroundColor = UIColor.systemGroupedBackground
}
}