Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @objc func onRotated() {
- // portrait
- if UIDeviceOrientationIsPortrait(UIDevice.current.orientation) {
- }
- // landscape
- else if UIDeviceOrientationIsLandscape(UIDevice.current.orientation) {
- }
- }
Add Comment
Please, Sign In to add comment