File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
SDWebImageSwiftUI/Classes Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 88
99import SwiftUI
1010import SDWebImage
11- #if canImport(SDWebImageSwiftUIObjC)
12- import SDWebImageSwiftUIObjC
13- #endif
14-
15- // Convenient
16- #if os(watchOS)
17- public typealias AnimatedImageViewWrapper = SDAnimatedImageInterfaceWrapper
18- #endif
1911
2012/// A coordinator object used for `AnimatedImage`native view bridge for UIKit/AppKit/WatchKit.
2113public final class AnimatedImageCoordinator : NSObject {
Original file line number Diff line number Diff line change 88
99import Foundation
1010import SDWebImage
11+ #if canImport(SDWebImageSwiftUIObjC)
12+ import SDWebImageSwiftUIObjC
13+ #endif
14+
15+ #if os(watchOS)
16+ /// Use wrapper to solve the `WKInterfaceImage` aspect issue (SwiftUI's Bug)
17+ public typealias AnimatedImageViewWrapper = SDAnimatedImageInterfaceWrapper
18+ #endif
1119
1220#if !os(watchOS)
1321
You can’t perform that action at this time.
0 commit comments