File tree 2 files changed +8
-8
lines changed
SDWebImageSwiftUI/Classes
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import SwiftUI
10
10
import SDWebImage
11
- #if canImport(SDWebImageSwiftUIObjC)
12
- import SDWebImageSwiftUIObjC
13
- #endif
14
-
15
- // Convenient
16
- #if os(watchOS)
17
- public typealias AnimatedImageViewWrapper = SDAnimatedImageInterfaceWrapper
18
- #endif
19
11
20
12
/// A coordinator object used for `AnimatedImage`native view bridge for UIKit/AppKit/WatchKit.
21
13
public final class AnimatedImageCoordinator : NSObject {
Original file line number Diff line number Diff line change 8
8
9
9
import Foundation
10
10
import 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
11
19
12
20
#if !os(watchOS)
13
21
You can’t perform that action at this time.
0 commit comments