Преглед изворни кода

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)