瀏覽代碼

Merge pull request #1786 from leonpesdk/fix/animated-image-view-tint-color

Fix iOS 15 `AnimatedImageView.tintColor`
Wei Wang 4 年之前
父節點
當前提交
2a05d71131
共有 2 個文件被更改,包括 9 次插入1 次删除
  1. 8 0
      CHANGELOG.md
  2. 1 1
      Sources/Views/AnimatedImageView.swift

+ 8 - 0
CHANGELOG.md

@@ -2,6 +2,14 @@
 
 -----
 
+## [Unreleased]
+
+#### Fix
+
+* Fix `AnimatedImageView` not changing the `tintColor` for templated images. [#1785]
+
+---
+
 ## [7.0.0-beta.2 - Version 7](https://github.com/onevcat/Kingfisher/releases/tag/7.0.0-beta.2) (2021-08-02)
 
 #### Fix

+ 1 - 1
Sources/Views/AnimatedImageView.swift

@@ -230,7 +230,7 @@ open class AnimatedImageView: UIImageView {
         if let currentFrame = animator?.currentFrameImage {
             layer.contents = currentFrame.cgImage
         } else {
-            layer.contents = image?.cgImage
+            super.display(layer)
         }
     }