Rotation
DaveInTO opened this issue · comments
Possible to disable rotation on all the sub pages except 1?
I've tried many of the solutions on SO, for NavBar UI, but they don't seem to work with this.
Thanks,
Dave
Hi @DaveInTO
Unfortunately, at the moment current version of the library doesn't support rotation feature. I'm going to implement it in next release.
Thanks!
Can't wait for rotation support :D
I managed to get some kind of rotation support by adding this to MenuViewController.swift
func delay(seconds: Double, completion:@escaping ()->()) { let popTime = DispatchTime.now() + Double(Int64( Double(NSEC_PER_SEC) * seconds )) / Double(NSEC_PER_SEC) DispatchQueue.main.asyncAfter(deadline: popTime) { completion() } }
open override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { self.menuContainerViewController?.hideMenu() super.viewWillTransition(to: size, with: coordinator) self.delay(seconds: 0.5){ self.menuContainerViewController?.showMenu() } }
@douglas-srs Thanks for sharing some workaround for rotation feature!
The rotation feature is available in new Side Menu version. You can try it!