Skip to content

Commit

Permalink
Merge pull request #2 from Subito-it/feature/smart_invert_colors
Browse files Browse the repository at this point in the history
Support for Smart Invert Colors
  • Loading branch information
tcamin authored Jun 8, 2018
2 parents 38ae026 + 3ca8f19 commit f65ed50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Pellicola.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Pellicola'
s.version = '0.2.5'
s.version = '0.2.6'
s.summary = 'A replacement for UIImagePickerController with multiple selection'
s.description = 'A replacement for UIImagePickerController with multiple selection support written in Swift.'
s.homepage = 'https://github.com/Subito-it/Pellicola'
Expand Down
3 changes: 3 additions & 0 deletions Pellicola/Classes/Views/AssetCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class AssetCell: UICollectionViewCell {
let imageView = UIImageView()
imageView.applyThumbnailStyle()
imageView.translatesAutoresizingMaskIntoConstraints = false
if #available(iOS 11.0, *) {
imageView.accessibilityIgnoresInvertColors = true
}
return imageView
}()

Expand Down
3 changes: 3 additions & 0 deletions Pellicola/Classes/Views/AssetCollectionCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class AssetCollectionCell: UITableViewCell {
super.awakeFromNib()

thumbnailView.applyThumbnailStyle()
if #available(iOS 11.0, *) {
thumbnailView.accessibilityIgnoresInvertColors = true
}
}

override func prepareForReuse() {
Expand Down

0 comments on commit f65ed50

Please sign in to comment.