Change disclosure image to be a filled triangle. Issue #1175
This commit is contained in:
parent
bdd085345b
commit
74c9290e6a
|
@ -65,12 +65,8 @@ struct AppAssets {
|
||||||
return UIImage(systemName: "circle")!
|
return UIImage(systemName: "circle")!
|
||||||
}()
|
}()
|
||||||
|
|
||||||
static var chevronSmallImage: UIImage = {
|
static var disclosureImage: UIImage = {
|
||||||
return UIImage(named: "chevronSmall")!
|
return UIImage(named: "disclosure")!
|
||||||
}()
|
|
||||||
|
|
||||||
static var chevronBaseImage: UIImage = {
|
|
||||||
return UIImage(named: "chevronBase")!
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
static var copyImage: UIImage = {
|
static var copyImage: UIImage = {
|
||||||
|
|
|
@ -178,7 +178,7 @@ private extension MasterFeedTableViewCell {
|
||||||
func addDisclosureView() {
|
func addDisclosureView() {
|
||||||
disclosureButton = NonIntrinsicButton(type: .roundedRect)
|
disclosureButton = NonIntrinsicButton(type: .roundedRect)
|
||||||
disclosureButton!.addTarget(self, action: #selector(buttonPressed(_:)), for: UIControl.Event.touchUpInside)
|
disclosureButton!.addTarget(self, action: #selector(buttonPressed(_:)), for: UIControl.Event.touchUpInside)
|
||||||
disclosureButton?.setImage(AppAssets.chevronBaseImage, for: .normal)
|
disclosureButton?.setImage(AppAssets.disclosureImage, for: .normal)
|
||||||
addSubviewAtInit(disclosureButton!)
|
addSubviewAtInit(disclosureButton!)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ class MasterFeedTableViewSectionHeader: UITableViewHeaderFooterView {
|
||||||
private var disclosureView: UIImageView = {
|
private var disclosureView: UIImageView = {
|
||||||
let iView = NonIntrinsicImageView()
|
let iView = NonIntrinsicImageView()
|
||||||
iView.tintColor = UIColor.tertiaryLabel
|
iView.tintColor = UIColor.tertiaryLabel
|
||||||
iView.image = AppAssets.chevronSmallImage
|
iView.image = AppAssets.disclosureImage
|
||||||
iView.contentMode = .center
|
iView.contentMode = .center
|
||||||
return iView
|
return iView
|
||||||
}()
|
}()
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
"images" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal",
|
|
||||||
"filename" : "chevron-small.pdf"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"version" : 1,
|
|
||||||
"author" : "xcode"
|
|
||||||
},
|
|
||||||
"properties" : {
|
|
||||||
"template-rendering-intent" : "template"
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"filename" : "chevron-base.pdf"
|
"filename" : "disclosure.pdf"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"info" : {
|
"info" : {
|
Binary file not shown.
Loading…
Reference in New Issue