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

How to automatically collapse the bottomsheet? #52

Open
ninayang036 opened this issue Jul 30, 2021 · 3 comments
Open

How to automatically collapse the bottomsheet? #52

ninayang036 opened this issue Jul 30, 2021 · 3 comments

Comments

@ninayang036
Copy link

hi~
BottomSheetView can appear successfully
But I want to collapse the bottomsheetView automatically
How can use?
Thanks.

@bensmiley
Copy link

Same problem...

@osanoj
Copy link
Contributor

osanoj commented Oct 19, 2021

Not sure what collapse automatically means?

Collapse/close it from code? Then dismiss the view controller as you would any other presented view controller.

@Asifnewaz
Copy link

  1. Keep bottomSheetView as a global instance of the class
  2. Add bottomSheetView.dismissalDelegate = self this delegate,
  3. Add bottomSheetView.dismiss() inside the delegate method.

you will get an automatic disappear

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

4 participants