Browse Source

Also fix for tvOS

onevcat 8 years ago
parent
commit
a8bcb4cdd6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/AnimatedImageView.swift

+ 1 - 1
Sources/AnimatedImageView.swift

@@ -184,7 +184,7 @@ open class AnimatedImageView: UIImageView {
         // CA based display link is opt-out from ProMotion by default.
         // CA based display link is opt-out from ProMotion by default.
         // So the duration and its FPS might not match. 
         // So the duration and its FPS might not match. 
         // See [#718](https://github.com/onevcat/Kingfisher/issues/718)
         // See [#718](https://github.com/onevcat/Kingfisher/issues/718)
-        if #available(iOSApplicationExtension 10.3, *) {
+        if #available(iOSApplicationExtension 10.0, tvOSApplicationExtension 10.0, *) {
             // By setting CADisableMinimumFrameDuration to YES in Info.plist may 
             // By setting CADisableMinimumFrameDuration to YES in Info.plist may 
             // cause the preferredFramesPerSecond being 0
             // cause the preferredFramesPerSecond being 0
             if displayLink.preferredFramesPerSecond == 0 {
             if displayLink.preferredFramesPerSecond == 0 {