InteractiveSideMenu icon indicating copy to clipboard operation
InteractiveSideMenu copied to clipboard

Delay on SideMenuItemContent

Open hakankoluacik opened this issue 7 years ago • 1 comments

Sometimes when i tap an item from the menu, viewcontroller comes after 4-5 second delay i don't have any idea why. Sometomes comes fast.

hakankoluacik avatar May 16 '18 07:05 hakankoluacik

I have experienced the same delay. The following fixed it for me. Change made to MenuContainerViewController.swift

    /**
     Presents left side menu.
     */
    func presentNavigationMenu() {
        if menuViewController == nil {
            fatalError("Invalid 'menuViewController' value. It should not be nil")
        }
        DispatchQueue.main.async { [weak self] in
            guard let menuViewController = self?.menuViewController else { return }
            self?.present(menuViewController, animated: true, completion: nil)
        }
        isShown = true
    }

    /**
     Dismisses left side menu.
     */
    func dismissNavigationMenu() {
        DispatchQueue.main.async { [weak self] in
            self?.dismiss(animated: true, completion: nil)
        }
        isShown = false
    }

lmr001 avatar Jul 02 '18 14:07 lmr001