Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Placement hamburger button wrong iOS 11 #130

@StevenVerheyen

Description

@StevenVerheyen

Hi!
After upgrading to Xcode 9 and iOS 11, the hamburger button has been moved slightly to the right. I cannot find a fix for this.

On the screenshot you can see the hamburger menu with a red background color just to highlight the bounds of it. As you can see, on simulator at the right (which is iOS 11), the hamburger button is a bit more to the right. This has been tested on both real devices and simulators and it occurs on both. So it is not a simulator issue.

screen shot 2017-10-14 at 13 25 52

As for the code part, I added this for the SideMenuController. Note; I am using Storyboards:

import SideMenuController

class  CustomSideMenuController: SideMenuController {

    required init?(coder aDecoder: NSCoder) {
        SideMenuController.preferences.drawing.menuButtonImage = UIImage(named: "menu")
        SideMenuController.preferences.drawing.sidePanelPosition = .overCenterPanelLeft
        SideMenuController.preferences.drawing.sidePanelWidth = 300
        SideMenuController.preferences.drawing.centerPanelShadow = true
        SideMenuController.preferences.animating.statusBarBehaviour = .showUnderlay
        SideMenuController.preferences.animating.hideDuration = 0.3
        super.init(coder: aDecoder)
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        performSegue(withIdentifier: "showCenterControllerAlgemeen", sender: nil)
        performSegue(withIdentifier: "containSideMenu", sender: nil)
    }

}

Anyone has ideas for this? I also tested this with the example project and there it is also noticeable.
Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions