I am using MDCBottomSheetController
following is my code to present bottom sheet controller
let bottomSheet: MDCBottomSheetController = MDCBottomSheetController(contentViewController: viewController)
// Present the bottom sheet
bottomSheet.shouldFlashScrollIndicatorsOnAppearance = true;
if openFor == SearchBottomSheetViewController.OPEN_FOR_DATE {
bottomSheet.preferredContentSize = CGSize(width: self.view.frame.size.width, height: self.view.frame.size.height * 0.3)
}else {
bottomSheet.preferredContentSize = CGSize(width: self.view.frame.size.width, height: 3 * self.view.frame.size.height / 4)
}
// bottomSheet.dismiss(animated: <#T##Bool#>, completion: <#T##(() -> Void)?##(() -> Void)?##() -> Void#>)
present(bottomSheet, animated: true, completion: nil)
When ever soft key board is shown bottom sheet ui is pushed up I don't want UI to be pushed up when keyboard is shown
Refer to below gif for issue