Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
- if UIDevice.current.orientation == .portrait
- {
- self.stackV.axis = UILayoutConstraintAxis.vertical
- }
- else
- {
- self.stackV.axis = UILayoutConstraintAxis.horizontal
- }
- }
Add Comment
Please, Sign In to add comment