Fixes incorrect SaveStatesCollectionHeaderView text color on iOS 13
This commit is contained in:
parent
da00488a55
commit
f47f515f90
@ -55,7 +55,7 @@ class SaveStatesCollectionHeaderView: UICollectionReusableView
|
|||||||
|
|
||||||
self.textLabel.font = UIFont(descriptor: fontDescriptor, size: 0.0)
|
self.textLabel.font = UIFont(descriptor: fontDescriptor, size: 0.0)
|
||||||
self.textLabel.textAlignment = .center
|
self.textLabel.textAlignment = .center
|
||||||
self.vibrancyView.contentView.addSubview(self.textLabel)
|
self.addSubview(self.textLabel)
|
||||||
|
|
||||||
// Auto Layout
|
// Auto Layout
|
||||||
self.textLabel.leadingAnchor.constraint(equalTo: self.leadingAnchor, constant: 20).isActive = true
|
self.textLabel.leadingAnchor.constraint(equalTo: self.leadingAnchor, constant: 20).isActive = true
|
||||||
|
|||||||
@ -267,12 +267,16 @@ private extension SaveStatesViewController
|
|||||||
}
|
}
|
||||||
|
|
||||||
headerView.textLabel.text = title
|
headerView.textLabel.text = title
|
||||||
headerView.textLabel.textColor = UIColor.white
|
|
||||||
|
|
||||||
switch self.theme
|
switch self.theme
|
||||||
{
|
{
|
||||||
case .opaque: headerView.isTextLabelVibrancyEnabled = false
|
case .opaque:
|
||||||
case .translucent: headerView.isTextLabelVibrancyEnabled = true
|
headerView.textLabel.textColor = UIColor.lightGray
|
||||||
|
headerView.isTextLabelVibrancyEnabled = false
|
||||||
|
|
||||||
|
case .translucent:
|
||||||
|
headerView.textLabel.textColor = UIColor.white
|
||||||
|
headerView.isTextLabelVibrancyEnabled = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user