Răsfoiți Sursa

Only need to apply on UIKit

onevcat 1 an în urmă
părinte
comite
50fc41e3c2
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      Sources/SwiftUI/KFAnimatedImage.swift

+ 3 - 0
Sources/SwiftUI/KFAnimatedImage.swift

@@ -87,7 +87,10 @@ public struct KFAnimatedImageViewRepresenter: KFCrossPlatformViewRepresentable,
     @MainActor
     private func makeImageView() -> AnimatedImageView {
         let view = AnimatedImageView()
+        
+        #if !os(macOS)
         view.isUserInteractionEnabled = true
+        #endif
         
         self.context.renderConfigurations.forEach { $0(view) }