finn-no/BottomSheet

How to automatically collapse the bottomsheet?

Opened this issue · 3 comments

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

Same problem...

Not sure what collapse automatically means?

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

  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