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

added an attribute to fix error on mac catalyst

kviatkovskii пре 4 година
родитељ
комит
8319f6fd62
1 измењених фајлова са 1 додато и 0 уклоњено
  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.
     /// Declares the content and behavior of this view.
+    @ViewBuilder
     var body: some View {
     var body: some View {
         if let image = binder.loadedImage {
         if let image = binder.loadedImage {
             configurations
             configurations