Pulley
Pulley copied to clipboard
Pulley drawer dimming view appears after UINavigationViewController push new viewController
I created a small public project where we can clearly see that bug https://github.com/BGLv/PulleyDimmingViewBug
https://user-images.githubusercontent.com/22197990/146005651-9479f2fc-2b03-4204-9f06-d5491bf7e44b.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()
}