Просмотр исходного кода

added an attribute to fix error on mac catalyst

kviatkovskii 4 лет назад
Родитель
Сommit
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.
+    @ViewBuilder
     var body: some View {
         if let image = binder.loadedImage {
             configurations