X-Git-Url: https://git.mdrn.pl/wl-app.git/blobdiff_plain/53b27422d140022594fc241cca91c3183be57bca..48b2fe9f7c2dc3d9aeaaa6dbfb27c7da4f3235ff:/iOS/WolneLektury/Screens/Common/WLSideMenuNavigationController.swift?ds=sidebyside diff --git a/iOS/WolneLektury/Screens/Common/WLSideMenuNavigationController.swift b/iOS/WolneLektury/Screens/Common/WLSideMenuNavigationController.swift new file mode 100644 index 0000000..74de320 --- /dev/null +++ b/iOS/WolneLektury/Screens/Common/WLSideMenuNavigationController.swift @@ -0,0 +1,20 @@ +// +// WLSideMenuNavigationController.swift +// WolneLektury +// +// Created by Pawel Dabrowski on 28/09/2018. +// Copyright © 2018 Fundacja Nowoczesna Polska. All rights reserved. +// + +import UIKit +import SideMenu +class WLSideMenuNavigationController: UISideMenuNavigationController{ + + override var shouldAutorotate: Bool { + return true + } + + override var supportedInterfaceOrientations: UIInterfaceOrientationMask { + return UIDevice.current.userInterfaceIdiom == .pad ? .all : .portrait + } +}