fix rotation with system version check
[Style] Prefixed helper function

... and changed brace positioning to match code style
Check iOS version by availability of isOperatingSystemAtLeastVersion:
Merge branch 'forks/ulechka/master'