Skip to content

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

@BGLv

Description

@BGLv

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()
    }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions