Closed mohabbasi1213 closed 1 year ago
Hi!
It was just added to version 2.0.3, now you can conveniently specify if bottom sheet can be dismissed or not
presentBottomSheet(
viewController: viewControllerToPresent,
configuration: BottomSheetConfiguration(
cornerRadius: 10,
pullBarConfiguration: .visible(.init(height: 20)),
shadowConfiguration: .init(backgroundColor: UIColor.black.withAlphaComponent(0.6))
),
canBeDismissed: {
// TODO: return `true` or `false` based on your business logic
true
}
)
I want to use BottomSheet as my loading view and not let the user dismiss it easily on swipe or outside tap. Is it possible?