From f26b85a4662b6e3123c5af50d6b5e05a4c34760a Mon Sep 17 00:00:00 2001 From: Stefan Trauth Date: Fri, 29 Dec 2017 20:59:18 +0100 Subject: [PATCH] support smart invert and therefore do not invert image view colors --- LNPopupController/LNPopupController/Private/LNPopupBar.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LNPopupController/LNPopupController/Private/LNPopupBar.m b/LNPopupController/LNPopupController/Private/LNPopupBar.m index e2e760a4..1f63f7e3 100644 --- a/LNPopupController/LNPopupController/Private/LNPopupBar.m +++ b/LNPopupController/LNPopupController/Private/LNPopupBar.m @@ -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];