Skip to content

Delay on SideMenuItemContent #92

Open

Description

@hakankoluacik

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.

Activity

  1. lmr001 commented on Jul 2, 2018

    @lmr001

    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
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions