diff --git a/VDS/Components/RadioBox/RadioBoxGroup.swift b/VDS/Components/RadioBox/RadioBoxGroup.swift index b5531e33..8c955999 100644 --- a/VDS/Components/RadioBox/RadioBoxGroup.swift +++ b/VDS/Components/RadioBox/RadioBoxGroup.swift @@ -71,13 +71,13 @@ open class RadioBoxGroup: SelectorGroupBase, 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 } } }