onevcat 9 лет назад
Родитель
Сommit
ddd4f04dbd
1 измененных файлов с 11 добавлено и 11 удалено
  1. 11 11
      Sources/ImageView+Kingfisher.swift

+ 11 - 11
Sources/ImageView+Kingfisher.swift

@@ -272,31 +272,31 @@ extension ImageView {
 extension IndicatorView {
 extension IndicatorView {
     func kf_startAnimating() {
     func kf_startAnimating() {
         #if os(macOS)
         #if os(macOS)
-            startAnimation(nil)
+        startAnimation(nil)
         #else
         #else
-            startAnimating()
+        startAnimating()
         #endif
         #endif
         isHidden = false
         isHidden = false
     }
     }
     
     
     func kf_stopAnimating() {
     func kf_stopAnimating() {
         #if os(macOS)
         #if os(macOS)
-            stopAnimation(nil)
+        stopAnimation(nil)
         #else
         #else
-            stopAnimating()
+        stopAnimating()
         #endif
         #endif
         isHidden = true
         isHidden = true
     }
     }
     
     
     #if os(macOS)
     #if os(macOS)
     var kf_center: CGPoint {
     var kf_center: CGPoint {
-    get {
-    return CGPoint(x: frame.origin.x + frame.size.width / 2.0, y: frame.origin.y + frame.size.height / 2.0 )
-    }
-    set {
-    let newFrame = CGRect(x: newValue.x - frame.size.width / 2.0, y: newValue.y - frame.size.height / 2.0, width: frame.size.width, height: frame.size.height)
-    frame = newFrame
-    }
+        get {
+            return CGPoint(x: frame.origin.x + frame.size.width / 2.0, y: frame.origin.y + frame.size.height / 2.0 )
+        }
+        set {
+            let newFrame = CGRect(x: newValue.x - frame.size.width / 2.0, y: newValue.y - frame.size.height / 2.0, width: frame.size.width, height: frame.size.height)
+            frame = newFrame
+        }
     }
     }
     #else
     #else
     var kf_center: CGPoint {
     var kf_center: CGPoint {