Fixes incorrect SaveStatesCollectionHeaderView text color on iOS 13

This commit is contained in:
Riley Testut 2019-10-14 17:04:39 -07:00
parent da00488a55
commit f47f515f90
2 changed files with 8 additions and 4 deletions

View File

@ -55,7 +55,7 @@ class SaveStatesCollectionHeaderView: UICollectionReusableView
self.textLabel.font = UIFont(descriptor: fontDescriptor, size: 0.0)
self.textLabel.textAlignment = .center
self.vibrancyView.contentView.addSubview(self.textLabel)
self.addSubview(self.textLabel)
// Auto Layout
self.textLabel.leadingAnchor.constraint(equalTo: self.leadingAnchor, constant: 20).isActive = true

View File

@ -267,12 +267,16 @@ private extension SaveStatesViewController
}
headerView.textLabel.text = title
headerView.textLabel.textColor = UIColor.white
switch self.theme
{
case .opaque: headerView.isTextLabelVibrancyEnabled = false
case .translucent: headerView.isTextLabelVibrancyEnabled = true
case .opaque:
headerView.textLabel.textColor = UIColor.lightGray
headerView.isTextLabelVibrancyEnabled = false
case .translucent:
headerView.textLabel.textColor = UIColor.white
headerView.isTextLabelVibrancyEnabled = true
}
}