Browse Source

Remove the unused border

onevcat 6 năm trước cách đây
mục cha
commit
b258654989

+ 3 - 3
Demo/Demo/Kingfisher-SwiftUI-Demo/Views/SwiftUIList.swift

@@ -53,9 +53,9 @@ struct SwiftUIList : View {
                     HStack {
                         Image(systemName: "arrow.2.circlepath.circle")
                             .resizable()
-                            .frame(width: 80, height: 80)
-                            .padding(20)
-                        Text("Loading...").font(.largeTitle)
+                            .frame(width: 50, height: 50)
+                            .padding(10)
+                        Text("Loading...").font(.title)
                     }
                     .foregroundColor(.gray)
                     .opacity(0.3)

+ 0 - 1
Sources/SwiftUI/KFImage.swift

@@ -96,7 +96,6 @@ public struct KFImage: View {
                     }
                 }
                 .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity)
-                .border(Color.black)
                 .onDisappear { [unowned binder = self.binder] in
                     if self.cancelOnDisappear { binder.cancel() }
                 }