From 2f57d8ebad0be6ded0f6839d89102b024ad57fa3 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 8 Jan 2024 12:31:56 -0600 Subject: [PATCH] updated intrinsic size Signed-off-by: Matt Bruce --- VDS/Components/Loader/Loader.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VDS/Components/Loader/Loader.swift b/VDS/Components/Loader/Loader.swift index e10c60b1..691fed89 100644 --- a/VDS/Components/Loader/Loader.swift +++ b/VDS/Components/Loader/Loader.swift @@ -52,7 +52,7 @@ open class Loader: View { } /// 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 @@ -85,6 +85,7 @@ open class Loader: View { } else { stopAnimating() } + invalidateIntrinsicContentSize() } open override func updateAccessibility() {