Ignore invert colors for profile images + image uploads (#750)

This commit is contained in:
Bas Broek
2017-10-27 16:47:01 +02:00
committed by Ryan Nystrom
parent 523acc431a
commit 48516f068b
4 changed files with 15 additions and 1 deletions

View File

@@ -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)
}

View File

@@ -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)