Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position with .under will be full screen #36

Closed
niuchangming opened this issue Feb 14, 2019 · 3 comments
Closed

Position with .under will be full screen #36

niuchangming opened this issue Feb 14, 2019 · 3 comments

Comments

@niuchangming
Copy link

SideMenuController.preferences.basic.position = .under will be display full screen.

@kukushi
Copy link
Owner

kukushi commented Feb 15, 2019

Hi @niuchangming, the example displays the expected layout.
Any code to reproduce the problem?

@hassan-shahbazi
Copy link

I have the exact same problem with "under" position preference. Here is my code:

override func awakeFromNib() {
        SideMenuController.preferences.basic.direction = .right
        SideMenuController.preferences.basic.menuWidth = 250.0
        
        super.awakeFromNib()
}

 override func viewDidLoad() {
        super.viewDidLoad()
        initiateSideMenu()
}

private func initiateSideMenu() {
        SideMenuController.preferences.basic.position = .under
        SideMenuController.preferences.basic.supportedOrientations = .portrait
}

@kukushi
Copy link
Owner

kukushi commented Feb 26, 2019

@Hassaniiii SideMneu does not support changing some core preferences after initialized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants