diff --git a/SDWebImageSwiftUI/Classes/AnimatedImage.swift b/SDWebImageSwiftUI/Classes/AnimatedImage.swift index 1a6adbf..7e0248f 100644 --- a/SDWebImageSwiftUI/Classes/AnimatedImage.swift +++ b/SDWebImageSwiftUI/Classes/AnimatedImage.swift @@ -178,11 +178,7 @@ public struct AnimatedImage : PlatformViewRepresentable { _imageModel = ObservedObject(wrappedValue: imageModel) } - #if os(macOS) - public typealias NSViewType = AnimatedImageViewWrapper - #else - public typealias UIViewType = AnimatedImageViewWrapper - #endif + public typealias PlatformViewType = AnimatedImageViewWrapper public typealias Coordinator = AnimatedImageCoordinator