ソースを参照

Move `@objc` mark to function

This resolves the library revolution error when building with Swift 5.1.3
onevcat 6 年 前
コミット
45e3fc297a
1 ファイル変更2 行追加2 行削除
  1. 2 2
      Sources/Extensions/ImageView+Kingfisher.swift

+ 2 - 2
Sources/Extensions/ImageView+Kingfisher.swift

@@ -403,8 +403,8 @@ extension KingfisherWrapper where Base: KFCrossPlatformImageView {
 }
 
 
-@objc extension KFCrossPlatformImageView {
-    func shouldPreloadAllAnimation() -> Bool { return true }
+extension KFCrossPlatformImageView {
+    @objc func shouldPreloadAllAnimation() -> Bool { return true }
 }
 
 extension KingfisherWrapper where Base: KFCrossPlatformImageView {