Преглед на файлове

Merge pull request #1692 from kvyatkovskys/feature/catalyst-fix

added an attribute to fix error on mac catalyst
Wei Wang преди 4 години
родител
ревизия
7af80eb267
променени са 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