فهرست منبع

Fix indicator size setting

onevcat 8 سال پیش
والد
کامیت
e945944978
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Sources/ImageView+Kingfisher.swift

+ 1 - 1
Sources/ImageView+Kingfisher.swift

@@ -210,7 +210,7 @@ extension Kingfisher where Base: ImageView {
             // Add new
             if var newIndicator = newValue {
                 // Set default indicator frame if the view's frame not set.
-                if newIndicator.view.frame != .zero {
+                if newIndicator.view.frame == .zero {
                     newIndicator.view.frame = base.frame
                 }
                 newIndicator.viewCenter = CGPoint(x: base.bounds.midX, y: base.bounds.midY)