ソースを参照

Only need to apply on UIKit

onevcat 1 年間 前
コミット
50fc41e3c2
1 ファイル変更3 行追加0 行削除
  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) }