Skip to content

Instantly share code, notes, and snippets.

@zenangst
Last active April 18, 2018 08:18
Show Gist options
  • Save zenangst/f5781dcb845d9be9898e5f13729b0fea to your computer and use it in GitHub Desktop.
Save zenangst/f5781dcb845d9be9898e5f13729b0fea to your computer and use it in GitHub Desktop.
How to rotate tvOS into portrait mode - Example 1
let frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.height, height: UIScreen.main.bounds.width)
let window = UIWindow(frame: frame)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment