قالب وردپرس درنا توس
Home / IOS Development / Ios – SideMenu of the jonykong Scale Animation causes layout problems on presentation

Ios – SideMenu of the jonykong Scale Animation causes layout problems on presentation



In my app, I use the SideMenu frame of the young yoke with the presentation mode .menuSlideIn and a scale factor of 0.9 . For the most part, it works as expected. Unfortunately, as you can see in this video, the tab bar and navigation bar are shrunk when presenting the page menu.

On units without rounded corners, the common 44pt tab works, but the navigation bar is still a problem. As shown in the video, the tab and navigation bars correct when the view controller starts to reject.

My configuration code is as follows:

      private func configurePortfolioSelectionNavigationController () {
leave storyboard = UIStoryboard (name: "Main", bundle: null)
guard let portfolioSelectionNavigationController = storyboard.instantiateViewController (withIdentifier: "PortfolioSelectionNavigationController") as? UISideMenuNavigationController else {
return
}
guard let portfolioSelectionViewController = portfolioSelectionNavigationController.topViewController as? PortfolioSelectionViewController else {
return
}

portfolioSelectionViewController.delegate = self

portfolioSelectionNavigationController.menuWidth = UIScreen.main.bounds.width * 0.75
self.portfolioSelectionNavigationController = portfolioSelectionNavigationController

la sideMenuManager = SideMenuManager.default
pageMenuManager.menuLeftNavigationController = portfolioSelectionNavigationController
sideMenuManager.menuAddPanGestureToPresent (toView: self.view)
pageMenuManager.menuAddScreenEdgePanGesturesToPresent (toView: self.navigationController! .view, forMenu: .left)
sideMenuManager.menuFadeStatusBar = false
pageMenuManager.menuPresentMode = .menuSlideIn
pageMenuManager.menuAnimationTransformScaleFactor = 0.9
}

It should be noted that this is only a problem when you change the scale factor. Other animation types work fine.


Source link