Parcourir la source

fixed some indention issues

Lebron il y a 4 ans
Parent
commit
5450586fe3

+ 1 - 2
Sources/SwiftUI/KFAnimatedImage.swift

@@ -74,12 +74,11 @@ public struct KFAnimatedImageViewRepresenter: UIViewRepresentable, KFImageHoldin
     public func updateUIView(_ uiView: AnimatedImageView, context: Context) {
         uiView.image = image
     }
-    
 }
 
 #if DEBUG
 @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
-struct KFAnimatedImage_Previews : PreviewProvider {
+struct KFAnimatedImage_Previews: PreviewProvider {
     static var previews: some View {
         Group {
             KFAnimatedImage(source: .network(URL(string: "https://raw.githubusercontent.com/onevcat/Kingfisher-TestImages/master/DemoAppImage/GIF/1.gif")!))

+ 1 - 1
Sources/SwiftUI/KFImage.swift

@@ -86,7 +86,7 @@ extension KFImage {
 
 #if DEBUG
 @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
-struct KFImage_Previews : PreviewProvider {
+struct KFImage_Previews: PreviewProvider {
     static var previews: some View {
         Group {
             KFImage.url(URL(string: "https://raw.githubusercontent.com/onevcat/Kingfisher/master/images/logo.png")!)

+ 1 - 1
Sources/Utility/String+MD5.swift

@@ -50,7 +50,7 @@ extension KingfisherWrapper where Base == String {
 
     var ext: String? {
         var ext = ""
-        if let index  = base.lastIndex(of: ".") {
+        if let index = base.lastIndex(of: ".") {
             let extRange = base.index(index, offsetBy: 1)..<base.endIndex
             ext = String(base[extRange])
         }

+ 0 - 1
Sources/Views/Indicator.swift

@@ -85,7 +85,6 @@ extension Indicator {
     /// no offset for the indicator view.
     public var centerOffset: CGPoint { return .zero }
 
-
     /// Default implementation of `centerOffset` of `Indicator`. The default value is `.full`, means that the indicator
     /// will pin to the same height and width as the image view.
     public func sizeStrategy(in imageView: KFCrossPlatformImageView) -> IndicatorSizeStrategy {