Digital PCT032 defect CXTDT-608227: Set content compression resistance for RadioButton.

This commit is contained in:
Hedden, Kyle Matthew 2024-08-29 13:39:41 -04:00
parent f6f3cd53fe
commit 89842ee443

View File

@ -79,6 +79,11 @@ import VDS
//-------------------------------------------------- //--------------------------------------------------
open override func setup() { open override func setup() {
super.setup() super.setup()
// Radio button should never be smaller that its content size.
setContentCompressionResistancePriority(.required, for: .vertical)
setContentCompressionResistancePriority(.required, for: .horizontal)
publisher(for: .valueChanged) publisher(for: .valueChanged)
.sink { [weak self] control in .sink { [weak self] control in
guard let self, isEnabled else { return } guard let self, isEnabled else { return }