Skip to content

Commit 742d36a

Browse files
committed
Fix the issues when using progress indicator, the width is always the image size but not its intrinsicContentSize
1 parent f09878b commit 742d36a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

SDWebImageSwiftUI/Classes/ImageViewWrapper.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,11 @@ public class ProgressIndicatorWrapper : PlatformView {
6565
#if os(macOS)
6666
public override func layout() {
6767
super.layout()
68-
wrapped.frame = self.bounds
6968
wrapped.setFrameOrigin(CGPoint(x: (self.bounds.width - wrapped.frame.width) / 2, y: (self.bounds.height - wrapped.frame.height) / 2))
7069
}
7170
#else
7271
public override func layoutSubviews() {
7372
super.layoutSubviews()
74-
wrapped.frame = self.bounds
7573
wrapped.center = self.center
7674
}
7775
#endif

0 commit comments

Comments
 (0)