Merge pull request #127 from master-nevi/master

Update availability for all extensions for consistency
This commit is contained in:
DreamPiggy 2020-07-22 10:32:26 +08:00 committed by GitHub
commit 0c23726533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,7 @@ extension PlatformImage.Orientation {
} }
} }
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
extension Image.Orientation { extension Image.Orientation {
@inlinable var toPlatform: PlatformImage.Orientation { @inlinable var toPlatform: PlatformImage.Orientation {
switch self { switch self {

View File

@ -115,6 +115,7 @@ public final class ImageManager : ObservableObject {
} }
// Completion Handler // Completion Handler
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
extension ImageManager { extension ImageManager {
/// Provide the action when image load fails. /// Provide the action when image load fails.
/// - Parameters: /// - Parameters:
@ -157,4 +158,5 @@ extension ImageManager {
} }
// Indicator Reportor // Indicator Reportor
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
extension ImageManager: IndicatorReportable {} extension ImageManager: IndicatorReportable {}

View File

@ -122,6 +122,8 @@ public class ProgressIndicatorWrapper : PlatformView {
addSubview(wrapped) addSubview(wrapped)
} }
} }
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
extension PlatformView { extension PlatformView {
/// Adds constraints to this `UIView` instances `superview` object to make sure this always has the same size as the superview. /// Adds constraints to this `UIView` instances `superview` object to make sure this always has the same size as the superview.
/// Please note that this has no effect if its `superview` is `nil` add this `UIView` instance as a subview before calling this. /// Please note that this has no effect if its `superview` is `nil` add this `UIView` instance as a subview before calling this.