From 62f332f711cd0c0ca145c320dd02916dcb9a98ff Mon Sep 17 00:00:00 2001 From: David Robles Date: Tue, 21 Jul 2020 14:48:21 -0700 Subject: [PATCH] Update PlatformView extension availability --- SDWebImageSwiftUI/Classes/ImageViewWrapper.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SDWebImageSwiftUI/Classes/ImageViewWrapper.swift b/SDWebImageSwiftUI/Classes/ImageViewWrapper.swift index 681a45c..affda35 100644 --- a/SDWebImageSwiftUI/Classes/ImageViewWrapper.swift +++ b/SDWebImageSwiftUI/Classes/ImageViewWrapper.swift @@ -122,6 +122,8 @@ public class ProgressIndicatorWrapper : PlatformView { addSubview(wrapped) } } + +@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *) extension PlatformView { /// 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.