简体   繁体   中英

Swift - jonkykong SideMenu - Push view on top of menu

I'm using jonkykong's SideMenu and I want to push a view controller on top of my menu without dismissing the menu. Setting menuDismissOnPush to false keeps the menu from dismissing, but the pushed view controller is underneath the menu. How can I force it on top of the menu?

/**
Automatically dismisses the menu when another view is pushed from it.

 Note: to prevent the menu from dismissing when presenting, set modalPresentationStyle = .overFullScreen
 of the view controller being presented in storyboard or during its initalization.
 */
open var menuDismissOnPush = false

请使用以下代码
SideMenuManager.default.menuPushStyle = .subMenu

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM