From 7b99c0f4af3ecd28d00b0ada078a8ba9f364658e Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 20 Jun 2019 16:58:27 +0800 Subject: [PATCH 1/3] Switches from folder image to tag. --- iOS/AppAssets.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/AppAssets.swift b/iOS/AppAssets.swift index 4e1387d3e..f5be15e38 100644 --- a/iOS/AppAssets.swift +++ b/iOS/AppAssets.swift @@ -53,7 +53,7 @@ struct AppAssets { }() static var masterFolderImage: RSImage = { - let image = RSImage(named: "folderImage")! + let image = RSImage(systemName: "tag")! return image.maskWithColor(color: AppAssets.masterFolderColor.cgColor)! }() From ec609bbe7dfd0ec0f94b620e04f43760c95f88c4 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 20 Jun 2019 17:24:23 +0800 Subject: [PATCH 2/3] Adds section header background view Stops collapsing sections from appearing under the section view header. --- iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift b/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift index fd005da73..e38699c30 100644 --- a/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift +++ b/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift @@ -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 + } + } From ddfb5a8aaaf7f5fbc76b7ee8b95836f728eb490d Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 20 Jun 2019 20:18:43 +0800 Subject: [PATCH 3/3] Switches folder image to SFSymbol folder.fill --- iOS/AppAssets.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/AppAssets.swift b/iOS/AppAssets.swift index f5be15e38..d53da2302 100644 --- a/iOS/AppAssets.swift +++ b/iOS/AppAssets.swift @@ -53,7 +53,7 @@ struct AppAssets { }() static var masterFolderImage: RSImage = { - let image = RSImage(systemName: "tag")! + let image = RSImage(systemName: "folder.fill")! return image.maskWithColor(color: AppAssets.masterFolderColor.cgColor)! }()