Merge branch 'hotfix/radioBox' into 'release/20_1_0'

fixed bug within radiobox

See merge request BPHV_MIPS/vds_ios!284
This commit is contained in:
Bruce, Matt R 2024-08-12 14:59:42 +00:00
commit 307ac909a8

View File

@ -71,13 +71,13 @@ open class RadioBoxGroup: SelectorGroupBase<RadioBoxItem>, SelectorGroupSingleSe
mainStackView.axis = .horizontal
mainStackView.distribution = .fillEqually
} else {
if UIDevice.current.orientation.isPortrait || UIDevice.current.orientation == .unknown {
mainStackView.axis = .vertical
mainStackView.distribution = .fill
} else {
let orientation = UIDevice.current.orientation
if orientation == .landscapeLeft || orientation == .landscapeRight {
mainStackView.axis = .horizontal
mainStackView.distribution = .fillEqually
} else {
mainStackView.axis = .vertical
mainStackView.distribution = .fill
}
}
}