Browse Source

added an attribute to fix error on mac catalyst

kviatkovskii 4 years ago
parent
commit
8319f6fd62
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Sources/SwiftUI/KFImage.swift

+ 1 - 0
Sources/SwiftUI/KFImage.swift

@@ -161,6 +161,7 @@ struct KFImageRenderer: View {
     }
 
     /// Declares the content and behavior of this view.
+    @ViewBuilder
     var body: some View {
         if let image = binder.loadedImage {
             configurations