Skip to content

Commit

Permalink
Merge pull request #203 from funkenstrahlen/master
Browse files Browse the repository at this point in the history
Support smart invert and therefore do not invert image view colors
  • Loading branch information
LeoNatan authored Dec 30, 2017
2 parents 0f5fd11 + f26b85a commit be68328
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions LNPopupController/LNPopupController/Private/LNPopupBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ - (nonnull instancetype)initWithFrame:(CGRect)frame
_imageView.isAccessibilityElement = YES;
_imageView.layer.cornerRadius = 3;
_imageView.layer.masksToBounds = YES;
if (@available(iOS 11, *)) {
// support smart invert and therefore do not invert image view colors
_imageView.accessibilityIgnoresInvertColors = YES;
}

[self addSubview:_imageView];

Expand Down

0 comments on commit be68328

Please sign in to comment.