From 610178314c2dd2eb868ed5d050cbb6330efc4a4a Mon Sep 17 00:00:00 2001 From: Colin Caufield Date: Mon, 25 Sep 2017 13:13:26 -0700 Subject: [PATCH 1/3] Set FLAnimatedImageView's accessibilityIgnoresInvertColors property to YES in the initializer, rather than overriding entirely. --- FLAnimatedImage/FLAnimatedImageView.m | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/FLAnimatedImage/FLAnimatedImageView.m b/FLAnimatedImage/FLAnimatedImageView.m index 6c893e13..26fea1d2 100755 --- a/FLAnimatedImage/FLAnimatedImageView.m +++ b/FLAnimatedImage/FLAnimatedImageView.m @@ -87,6 +87,10 @@ - (instancetype)initWithCoder:(NSCoder *)aDecoder - (void)commonInit { self.runLoopMode = [[self class] defaultRunLoopMode]; + + if (@available(iOS 11.0, *)) { + self.accessibilityIgnoresInvertColors = YES; + } } @@ -211,11 +215,6 @@ - (CGSize)intrinsicContentSize #pragma mark Smart Invert Colors -- (BOOL)accessibilityIgnoresInvertColors -{ - return YES; -} - #pragma mark - UIImageView Method Overrides #pragma mark Image Data From 7ed1781a6ba8d3a3ef65f54b76b0e984edda829c Mon Sep 17 00:00:00 2001 From: Colin Caufield Date: Mon, 25 Sep 2017 13:14:01 -0700 Subject: [PATCH 2/3] Update CHANGES for 1.0.14. --- CHANGES | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGES b/CHANGES index 83c5ea0d..8ad07ff3 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ += 1.0.14 (2017-09-22) + + * Allow FLAnimatedImageView instances to set the accessibilityIgnoresInvertColors property (Colin Caufield @cjcaufield) + = 1.0.13 (2017-09-11) * Prevent FLAnimatedImageView from inverting on iOS 11 when Smart Invert Colors is enabled (Colin Caufield @cjcaufield) From 7578d66579df3aa3a7bd2f7412a8395dd9a4e9d5 Mon Sep 17 00:00:00 2001 From: Colin Caufield Date: Mon, 25 Sep 2017 13:14:28 -0700 Subject: [PATCH 3/3] Update podspec for 1.0.14. --- FLAnimatedImage.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FLAnimatedImage.podspec b/FLAnimatedImage.podspec index eea84ca4..54f2936f 100644 --- a/FLAnimatedImage.podspec +++ b/FLAnimatedImage.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "FLAnimatedImage" - spec.version = "1.0.13" + spec.version = "1.0.14" spec.summary = "Performant animated GIF engine for iOS" spec.description = <<-DESC - Plays multiple GIFs simultaneously with a playback speed comparable to desktop browsers @@ -18,7 +18,7 @@ Pod::Spec.new do |spec| spec.author = { "Raphael Schaad" => "raphael.schaad@gmail.com" } spec.social_media_url = "https://twitter.com/raphaelschaad" spec.platform = :ios, "6.0" - spec.source = { :git => "https://github.com/Flipboard/FLAnimatedImage.git", :tag => "1.0.13" } + spec.source = { :git => "https://github.com/Flipboard/FLAnimatedImage.git", :tag => "1.0.14" } spec.source_files = "FLAnimatedImage/**/*.{h,m}" spec.frameworks = "QuartzCore", "ImageIO", "MobileCoreServices", "CoreGraphics" spec.requires_arc = true