We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f09878b commit 742d36aCopy full SHA for 742d36a
SDWebImageSwiftUI/Classes/ImageViewWrapper.swift
@@ -65,13 +65,11 @@ public class ProgressIndicatorWrapper : PlatformView {
65
#if os(macOS)
66
public override func layout() {
67
super.layout()
68
- wrapped.frame = self.bounds
69
wrapped.setFrameOrigin(CGPoint(x: (self.bounds.width - wrapped.frame.width) / 2, y: (self.bounds.height - wrapped.frame.height) / 2))
70
}
71
#else
72
public override func layoutSubviews() {
73
super.layoutSubviews()
74
75
wrapped.center = self.center
76
77
#endif
0 commit comments