Browse Source

Allow user interaction for animated image

onevcat 1 year ago
parent
commit
b4837a97d9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Sources/SwiftUI/KFAnimatedImage.swift

+ 1 - 0
Sources/SwiftUI/KFAnimatedImage.swift

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