@@ -66,8 +66,8 @@ final class AnimatedImageHandler: ObservableObject {
66
66
@Published var failureBlock : ( ( Error ) -> Void ) ?
67
67
@Published var progressBlock : ( ( Int , Int ) -> Void ) ?
68
68
// Coordinator Handler
69
- @Published var viewCreateBlock : ( ( PlatformView , AnimatedImage . Context ) -> Void ) ?
70
- @Published var viewUpdateBlock : ( ( PlatformView , AnimatedImage . Context ) -> Void ) ?
69
+ @Published var viewCreateBlock : ( ( SDAnimatedImageView , AnimatedImage . Context ) -> Void ) ?
70
+ @Published var viewUpdateBlock : ( ( SDAnimatedImageView , AnimatedImage . Context ) -> Void ) ?
71
71
}
72
72
73
73
/// Layout Binding Object, supports dynamic @State changes
@@ -109,7 +109,7 @@ public struct AnimatedImage : PlatformViewRepresentable {
109
109
/// A observed object to pass through the image manager loading status to indicator
110
110
@ObservedObject var indicatorStatus = IndicatorStatus ( )
111
111
112
- static var viewDestroyBlock : ( ( PlatformView , Coordinator ) -> Void ) ?
112
+ static var viewDestroyBlock : ( ( SDAnimatedImageView , Coordinator ) -> Void ) ?
113
113
114
114
/// A Binding to control the animation. You can bind external logic to control the animation status.
115
115
/// True to start animation, false to stop animation.
@@ -770,23 +770,23 @@ extension AnimatedImage {
770
770
/// Provide the action when view representable create the native view.
771
771
/// - Parameter action: The action to perform. The first arg is the native view. The seconds arg is the context.
772
772
/// - Returns: A view that triggers `action` when view representable create the native view.
773
- public func onViewCreate( perform action: ( ( PlatformView , Context ) -> Void ) ? = nil ) -> AnimatedImage {
773
+ public func onViewCreate( perform action: ( ( SDAnimatedImageView , Context ) -> Void ) ? = nil ) -> AnimatedImage {
774
774
self . imageHandler. viewCreateBlock = action
775
775
return self
776
776
}
777
777
778
778
/// Provide the action when view representable update the native view.
779
779
/// - Parameter action: The action to perform. The first arg is the native view. The seconds arg is the context.
780
780
/// - Returns: A view that triggers `action` when view representable update the native view.
781
- public func onViewUpdate( perform action: ( ( PlatformView , Context ) -> Void ) ? = nil ) -> AnimatedImage {
781
+ public func onViewUpdate( perform action: ( ( SDAnimatedImageView , Context ) -> Void ) ? = nil ) -> AnimatedImage {
782
782
self . imageHandler. viewUpdateBlock = action
783
783
return self
784
784
}
785
785
786
786
/// Provide the action when view representable destroy the native view
787
787
/// - Parameter action: The action to perform. The first arg is the native view. The seconds arg is the coordinator (with userInfo).
788
788
/// - Returns: A view that triggers `action` when view representable destroy the native view.
789
- public static func onViewDestroy( perform action: ( ( PlatformView , Coordinator ) -> Void ) ? = nil ) {
789
+ public static func onViewDestroy( perform action: ( ( SDAnimatedImageView , Coordinator ) -> Void ) ? = nil ) {
790
790
self . viewDestroyBlock = action
791
791
}
792
792
}
0 commit comments