Merge pull request #773 from stuartbreckenridge/master

UI Housekeeping
This commit is contained in:
Maurice Parker 2019-06-20 07:25:37 -05:00 committed by GitHub
commit 4b13e508e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -53,7 +53,7 @@ struct AppAssets {
}() }()
static var masterFolderImage: RSImage = { static var masterFolderImage: RSImage = {
let image = RSImage(named: "folderImage")! let image = RSImage(systemName: "folder.fill")!
return image.maskWithColor(color: AppAssets.masterFolderColor.cgColor)! return image.maskWithColor(color: AppAssets.masterFolderColor.cgColor)!
}() }()

View File

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