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.
2 parents 451c6df + 765aea0 commit ea24105Copy full SHA for ea24105
SDWebImageSwiftUI/Classes/ImageViewWrapper.swift
@@ -73,15 +73,21 @@ public class AnimatedImageViewWrapper : PlatformView {
73
public override init(frame frameRect: CGRect) {
74
super.init(frame: frameRect)
75
addSubview(wrapped)
76
- observation = observe(\.wrapped.image, options: [.new]) { _, _ in
+ observation = observe(\.wrapped.image, options: [.new]) { [weak self] _, _ in
77
+ guard let self = self else {
78
+ return
79
+ }
80
self.invalidateIntrinsicContentSize()
81
}
82
83
84
public required init?(coder: NSCoder) {
85
super.init(coder: coder)
86
87
88
89
90
91
92
93
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments