BottomSheet
BottomSheet copied to clipboard
How to automatically collapse the bottomsheet?
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.
- Keep
bottomSheetViewas a global instance of the class - Add
bottomSheetView.dismissalDelegate = selfthis delegate, - Add
bottomSheetView.dismiss()inside the delegate method.
you will get an automatic disappear