onevcat hace 9 años
padre
commit
cd5902960e
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      Demo/Kingfisher-Demo/ViewController.swift
  2. 1 1
      Sources/Image.swift

+ 1 - 1
Demo/Kingfisher-Demo/ViewController.swift

@@ -34,7 +34,7 @@ class ViewController: UICollectionViewController {
         // Do any additional setup after loading the view, typically from a nib.
         title = "Kingfisher"
         
-        if #available(iOS 10.0, *) {
+        if #available(iOS 10.0, tvOS 10.0, *) {
             collectionView?.prefetchDataSource = self
         }
     }

+ 1 - 1
Sources/Image.swift

@@ -292,7 +292,7 @@ extension Kingfisher where Base: Image {
             guard let (images, gifDuration) = decode(from: imageSource, for: options) else {
                 return nil
             }
-            var image = Image(data: data)
+            let image = Image(data: data)
             image?.kf.images = images
             image?.kf.duration = gifDuration