mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-04-30 21:11:45 +08:00
Ignore invert colors for profile images + image uploads (#750)
This commit is contained in:
@@ -21,6 +21,9 @@ final class IssueAssigneeAvatarCell: UICollectionViewCell {
|
||||
imageView.layer.borderColor = Styles.Colors.Gray.light.color.cgColor
|
||||
imageView.layer.borderWidth = 1.0 / UIScreen.main.scale
|
||||
imageView.clipsToBounds = true
|
||||
if #available(iOS 11, *) {
|
||||
imageView.accessibilityIgnoresInvertColors = true
|
||||
}
|
||||
contentView.addSubview(imageView)
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,9 @@ final class IssueAssigneeUserCell: UICollectionViewCell, ListBindable {
|
||||
imageView.layer.borderColor = Styles.Colors.Gray.light.color.cgColor
|
||||
imageView.layer.borderWidth = 1.0 / UIScreen.main.scale
|
||||
imageView.clipsToBounds = true
|
||||
if #available(iOS 11, *) {
|
||||
imageView.accessibilityIgnoresInvertColors = true
|
||||
}
|
||||
contentView.addSubview(imageView)
|
||||
imageView.snp.makeConstraints { make in
|
||||
make.centerY.equalTo(contentView)
|
||||
|
||||
Reference in New Issue
Block a user