Skip to content

Commit 0c23726

Browse files
authored
Merge pull request #127 from master-nevi/master
Update availability for all extensions for consistency
2 parents 4c7f169 + 62f332f commit 0c23726

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

SDWebImageSwiftUI/Classes/Image.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ extension PlatformImage.Orientation {
5252
}
5353
}
5454

55+
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
5556
extension Image.Orientation {
5657
@inlinable var toPlatform: PlatformImage.Orientation {
5758
switch self {

SDWebImageSwiftUI/Classes/ImageManager.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public final class ImageManager : ObservableObject {
115115
}
116116

117117
// Completion Handler
118+
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
118119
extension ImageManager {
119120
/// Provide the action when image load fails.
120121
/// - Parameters:
@@ -157,4 +158,5 @@ extension ImageManager {
157158
}
158159

159160
// Indicator Reportor
161+
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
160162
extension ImageManager: IndicatorReportable {}

SDWebImageSwiftUI/Classes/ImageViewWrapper.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ public class ProgressIndicatorWrapper : PlatformView {
122122
addSubview(wrapped)
123123
}
124124
}
125+
126+
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
125127
extension PlatformView {
126128
/// Adds constraints to this `UIView` instances `superview` object to make sure this always has the same size as the superview.
127129
/// Please note that this has no effect if its `superview` is `nil` – add this `UIView` instance as a subview before calling this.

0 commit comments

Comments
 (0)