updated intrinsic size
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
093bd75871
commit
2f57d8ebad
@ -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() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user