How to automatically collapse the bottomsheet?
Opened this issue · 3 comments
ninayang036 commented
hi~
BottomSheetView can appear successfully
But I want to collapse the bottomsheetView automatically
How can use?
Thanks.
bensmiley commented
Same problem...
osanoj commented
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 commented
- Keep
bottomSheetView
as a global instance of the class - Add
bottomSheetView.dismissalDelegate = self
this delegate, - Add
bottomSheetView.dismiss()
inside the delegate method.
you will get an automatic disappear