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

Pulley drawer dimming view appears after UINavigationViewController push new viewController #421

Open
BGLv opened this issue Dec 14, 2021 · 0 comments
Assignees
Labels

Comments

@BGLv
Copy link

BGLv commented Dec 14, 2021

I created a small public project where we can clearly see that bug https://github.com/BGLv/PulleyDimmingViewBug

Screen.Recording.2021-12-14.at.14.55.44.mp4
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
        guard let windowScene = (scene as? UIWindowScene) else { return }
        let window = UIWindow(windowScene: windowScene)
        let mainVC = MainViewController()
        let pulleyVC = PulleyViewController(contentViewController: mainVC,
                                            drawerViewController: UIViewController())
        pulleyVC.initialDrawerPosition = .closed
        let navigationVC = UINavigationController(rootViewController: pulleyVC)
        mainVC.onNextButtonPressed = { [weak navigationVC] in
            let nextVC = UIViewController()
            nextVC.view.backgroundColor = .blue
            navigationVC?.pushViewController(nextVC, animated: true)
        }
        self.window = window
        window.rootViewController = navigationVC
        window.makeKeyAndVisible()
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants