updated intrinsic size

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-01-08 12:31:56 -06:00
parent 093bd75871
commit 2f57d8ebad

View File

@ -52,7 +52,7 @@ open class Loader: View {
} }
/// The natural size for the receiving view, considering only properties of the view itself. /// The natural size for the receiving view, considering only properties of the view itself.
open override var intrinsicContentSize: CGSize { .init(width: size, height: size) } open override var intrinsicContentSize: CGSize { isActive ? .init(width: size, height: size) : .zero }
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Overrides // MARK: - Overrides
@ -85,6 +85,7 @@ open class Loader: View {
} else { } else {
stopAnimating() stopAnimating()
} }
invalidateIntrinsicContentSize()
} }
open override func updateAccessibility() { open override func updateAccessibility() {