Change disclosure image to be a filled triangle. Issue #1175

This commit is contained in:
Maurice Parker 2019-10-25 14:57:01 -05:00
parent bdd085345b
commit 74c9290e6a
7 changed files with 5 additions and 24 deletions

View File

@ -65,12 +65,8 @@ struct AppAssets {
return UIImage(systemName: "circle")!
}()
static var chevronSmallImage: UIImage = {
return UIImage(named: "chevronSmall")!
}()
static var chevronBaseImage: UIImage = {
return UIImage(named: "chevronBase")!
static var disclosureImage: UIImage = {
return UIImage(named: "disclosure")!
}()
static var copyImage: UIImage = {

View File

@ -178,7 +178,7 @@ private extension MasterFeedTableViewCell {
func addDisclosureView() {
disclosureButton = NonIntrinsicButton(type: .roundedRect)
disclosureButton!.addTarget(self, action: #selector(buttonPressed(_:)), for: UIControl.Event.touchUpInside)
disclosureButton?.setImage(AppAssets.chevronBaseImage, for: .normal)
disclosureButton?.setImage(AppAssets.disclosureImage, for: .normal)
addSubviewAtInit(disclosureButton!)
}

View File

@ -68,7 +68,7 @@ class MasterFeedTableViewSectionHeader: UITableViewHeaderFooterView {
private var disclosureView: UIImageView = {
let iView = NonIntrinsicImageView()
iView.tintColor = UIColor.tertiaryLabel
iView.image = AppAssets.chevronSmallImage
iView.image = AppAssets.disclosureImage
iView.contentMode = .center
return iView
}()

View File

@ -1,15 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "chevron-small.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
}
}

View File

@ -2,7 +2,7 @@
"images" : [
{
"idiom" : "universal",
"filename" : "chevron-base.pdf"
"filename" : "disclosure.pdf"
}
],
"info" : {