Skip to content

Commit

Permalink
Merge branch 'colin/invert-instances'
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcaufield committed Sep 25, 2017
2 parents 2c04c1a + 7578d66 commit 16fe62b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions FLAnimatedImage.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
9 changes: 4 additions & 5 deletions FLAnimatedImage/FLAnimatedImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ - (instancetype)initWithCoder:(NSCoder *)aDecoder
- (void)commonInit
{
self.runLoopMode = [[self class] defaultRunLoopMode];

if (@available(iOS 11.0, *)) {
self.accessibilityIgnoresInvertColors = YES;
}
}


Expand Down Expand Up @@ -211,11 +215,6 @@ - (CGSize)intrinsicContentSize

#pragma mark Smart Invert Colors

- (BOOL)accessibilityIgnoresInvertColors
{
return YES;
}

#pragma mark - UIImageView Method Overrides
#pragma mark Image Data

Expand Down

0 comments on commit 16fe62b

Please sign in to comment.