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