diff --git a/SDWebImageSwiftUI/Classes/ImageViewWrapper.swift b/SDWebImageSwiftUI/Classes/ImageViewWrapper.swift index 66dc64d4..1aa5f779 100644 --- a/SDWebImageSwiftUI/Classes/ImageViewWrapper.swift +++ b/SDWebImageSwiftUI/Classes/ImageViewWrapper.swift @@ -65,13 +65,11 @@ public class ProgressIndicatorWrapper : PlatformView { #if os(macOS) public override func layout() { super.layout() - wrapped.frame = self.bounds wrapped.setFrameOrigin(CGPoint(x: (self.bounds.width - wrapped.frame.width) / 2, y: (self.bounds.height - wrapped.frame.height) / 2)) } #else public override func layoutSubviews() { super.layoutSubviews() - wrapped.frame = self.bounds wrapped.center = self.center } #endif