Skip to content
This repository was archived by the owner on Jan 14, 2018. It is now read-only.
This repository was archived by the owner on Jan 14, 2018. It is now read-only.

homeNavigationController flickers during animation when returning to it. #405

Description

@ariamckinley

So I've seen that there's known issues with flickering in the simulator, but this is happening on both the simulator and the device. And, this is ONLY happening to the persistent homeNavigationController. The instantiated menu items do not flicker. Also, this is only happening when I instantiate a menu item, then return to the homeNavigationController.

I'm using a UIPanGestureRecognizer to recognize drags from a control on the screen to animate based on finger position. The same implementation as in the one example file. However, I've noticed that when I return to the homescreen via self.slidingViewController().topViewController = self.homeNavigationController, it flickers when I touch and drag across. It flickers it's X coordinates and visibility and goes completely invisible when the menu is revealed.

Any idea what could be causing it? Here's how I'm opening my views

    case "Home":
        self.slidingViewController().topViewController = self.homeNavigationController
    case "History":
        self.slidingViewController().topViewController = storyboard?
            .instantiateViewControllerWithIdentifier("HistoryNavigationController") as UIViewController
    case "Favorites":
        self.slidingViewController().topViewController = storyboard?
            .instantiateViewControllerWithIdentifier("FavoritesNavigationController") as UIViewController

Here's the code that created the draggable title bar

dynamicTransition.slidingViewController = slidingViewController()
var transition: ECSlidingViewControllerDelegate = dynamicTransition
slidingViewController().delegate = transition
slidingViewController().anchorRightPeekAmount = 130
slidingViewController().topViewAnchoredGesture = ECSlidingViewControllerAnchoredGesture.Tapping | ECSlidingViewControllerAnchoredGesture.Panning
var dynamicTransitionPanGesture = UIPanGestureRecognizer(target: dynamicTransition, action: "handlePanGesture:")
slidingViewController().customAnchoredGestures = [dynamicTransitionPanGesture]
self.titleBar.addGestureRecognizer(dynamicTransitionPanGesture)
navigationController?.setNavigationBarHidden(true, animated: false)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions