mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 04:17:44 +01:00
Adds section header background view
Stops collapsing sections from appearing under the section view header.
This commit is contained in:
parent
7b99c0f4af
commit
ec609bbe7d
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user