Я думаю, что это поможет: -
, если UIDevice.currentDevice (). Ориентация == UIDeviceOrientation.LandscapeLeft {
print ("Anything")
} else if UIDevice.currentDevice (). Ориентация == UIDeviceOrientation.LandscapeRight {
print ("Anything")
} else если UIDevice.currentDevice (). direction == UIDeviceOrientation.UIDeviceOrientationPortraitUpside { 115]
print ("Anything")
} иначе, если UIDevice.currentDevice (). Ориентация == UIDeviceOrientation.UIDeviceOrientationPortrait {
print ("Anything")
[119 ]}
В зависимости от Вашего размера шрифта корректируйтесь соответственно:
<div style='width:12px'>a b c d</div>