BottomSheet icon indicating copy to clipboard operation
BottomSheet copied to clipboard

How to automatically collapse the bottomsheet?

Open ninayang036 opened this issue 4 years ago • 3 comments

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

ninayang036 avatar Jul 30 '21 06:07 ninayang036

Same problem...

bensmiley avatar Sep 20 '21 10:09 bensmiley

Not sure what collapse automatically means?

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

osanoj avatar Oct 19 '21 10:10 osanoj

  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

Asifnewaz avatar Jun 07 '23 19:06 Asifnewaz