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

Background greyout does not persist correctly after rotation #13

Open
Burtan opened this issue Jun 23, 2017 · 2 comments
Open

Background greyout does not persist correctly after rotation #13

Burtan opened this issue Jun 23, 2017 · 2 comments

Comments

@Burtan
Copy link

Burtan commented Jun 23, 2017

Hi,
as the title says, when you rotate with the Bottomsheet activated, the background is not greyed out correctly anymore.

@majid701
Copy link

majid701 commented Jan 2, 2018

I noticed it too. Anyone who has fixed it?

@tipoc123
Copy link

tipoc123 commented Oct 22, 2018

Try this (add to your UIViewController):

override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
        super.viewWillTransition(to: size, with: coordinator)        

        coordinator.animate(alongsideTransition: { (UIViewControllerTransitionCoordinatorContext) -> Void in
            self.bottomSheetController!.overlayView.frame = UIScreen.main.bounds
        }, completion: { (UIViewControllerTransitionCoordinatorContext) -> Void in
            //empty
        })
    }

where self.bottomSheetController is the Bottomsheet.Controller instance.

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

3 participants