From 71ce58eec4412c17a824a4cad8db4d4814ce3117 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Wed, 29 Nov 2023 16:10:17 +0800 Subject: [PATCH] Little code garden --- SDWebImageSwiftUI/Classes/AnimatedImage.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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