Closed yberdnikov closed 4 years ago
Same here. I also tried the forked repos that support swift 5.0 but same result.
Try setting the modalPresentationStyle of menu viewController to fullScreen as below. It should solve the problem.
override func viewDidLoad() {
super.viewDidLoad()
let screenSize: CGRect = UIScreen.main.bounds
self.transitionOptions = TransitionOptions(duration: 0.4, visibleContentWidth: screenSize.width / 6)
// Instantiate menu view controller by identifier
self.menuViewController = SampleMenuViewController.storyboardViewController()
self.menuViewController.modalPresentationStyle = .fullScreen
// Gather content items controllers
self.contentViewControllers = contentControllers()
// Select initial content controller. It's needed even if the first view controller should be selected.
self.selectContentViewController(contentViewControllers.first!)
self.currentItemOptions.cornerRadius = 10.0
}
`
Try setting the modalPresentationStyle of menu viewController to fullScreen as below. It should solve the problem.
override func viewDidLoad() { super.viewDidLoad() let screenSize: CGRect = UIScreen.main.bounds self.transitionOptions = TransitionOptions(duration: 0.4, visibleContentWidth: screenSize.width / 6) // Instantiate menu view controller by identifier self.menuViewController = SampleMenuViewController.storyboardViewController() self.menuViewController.modalPresentationStyle = .fullScreen // Gather content items controllers self.contentViewControllers = contentControllers() // Select initial content controller. It's needed even if the first view controller should be selected. self.selectContentViewController(contentViewControllers.first!) self.currentItemOptions.cornerRadius = 10.0 } `
Solved my problem. Thank you so much
Awsome Support By you guys.. Thank you guys
Try setting the modalPresentationStyle of menu viewController to fullScreen as below. It should solve the problem.
override func viewDidLoad() { super.viewDidLoad() let screenSize: CGRect = UIScreen.main.bounds self.transitionOptions = TransitionOptions(duration: 0.4, visibleContentWidth: screenSize.width / 6) // Instantiate menu view controller by identifier self.menuViewController = SampleMenuViewController.storyboardViewController() self.menuViewController.modalPresentationStyle = .fullScreen // Gather content items controllers self.contentViewControllers = contentControllers() // Select initial content controller. It's needed even if the first view controller should be selected. self.selectContentViewController(contentViewControllers.first!) self.currentItemOptions.cornerRadius = 10.0 } `
did u use the latest repo?
Thank you. If you change this code only need this code line self.menuViewController.modalPresentationStyle = .fullScreen
Thanks bro .fullScreen is fixed this isuues
Perfect fix. @handsomecode pls accept the PR
Right now when you select new controller, it shows black screen. Same code works on iOS 12 and earlier versions.