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

Non-Interactive UI after presenting another view controller from bottom sheet #178

Open
omidgolparvar opened this issue Feb 28, 2022 · 4 comments

Comments

@omidgolparvar
Copy link

omidgolparvar commented Feb 28, 2022

Consider this codes:

class AViewController {
    ...
    func presentB() {
        let controller = BViewController()
        let sheetController = SheetViewController(
	        controller: controller,
	        sizes: [.fixed(500)]
        )
        
        sheetController.didDismiss = { sheetController in
	        print(#function, "SheetController.didDismiss.")
        }
        
        present(sheetController, animated: true, completion: nil)
    }
}

class BViewController {
    ...
    func presentAnother() {
        let controller = AnotherViewController()
        controller.modalPresentationStyle = .fullScreen
        
        present(sheetController, animated: true, completion: nil)
    }
}

When the view controller presented using SheetViewController, tries to present another view controller modally, it seems that bottom sheet is dismissed, but its transition view will remain in view hierarchy and it robs all touch interactions.

Screen Shot 2022-02-28 at 3 37 01 PM

After presenting AnotherViewController, print(#function, "SheetController.didDismiss.") will execute.

@devSC
Copy link

devSC commented Apr 22, 2022

any idea ?

@Vidur15
Copy link

Vidur15 commented Aug 22, 2022

Use inline mode = true
Solved For me

@alexeymilakhin
Copy link

@omidgolparvar you find a solution?

@guyaumetremblay
Copy link

@omidgolparvar Did you find a solution?
@gordontucker any idea how to resolve this please?
I got the same and @Vidur15 solution didn't work in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants