material-components-ios
material-components-ios copied to clipboard
MDCBottomSheet Not sticking to the bottom view when dragged upwards
In my app, i have implemented MDCbottomsheet which is working fine but when i drag somewhat upwards it doesnt stick to the view and inside that mdcbottom sheet view i have a textfield so when the keyboard opens the bottom sheet moves way too upwards like show in the image below:
The title doesn't have a [Component] prefix.
please help me with this issue
its been 16 days since no one has replied..I am not getting this why it doesnt stick to the bottom
Hi @nishant6042, I'm not sure I understand. Could you provide a video of what's happening by any chance?
Screen Recording 2020-08-28 at 8.43.51 PM.mov.zip @andrewoverton
Why anybody not replying...please help
please help with my issue. its been over a month since i posted my issue
Hi @nishant6042, apologies for the delay. After https://github.com/material-components/material-components-ios/commit/588d9d2fe5c71931dad726c3d48e7b6133c79d89 the bottom edge of the bottom sheet has a mask applied to the elevation, so you should be able to set the background color of the MDCBottomSheetController's view and have that blend seamlessly with the content view controller. This will address the detachment seen at the 10 second mark in your video. I am not sure if it will address the behavior at 15 seconds though. I don't know what's going on there. It may have something to do with your custom keyboard handling code?
please help with my issue. its been over a month since i posted my issue
how did you solve this problem ?
fixed with this func customEventBeforeTextViewBeginEditing() { NotificationCenter.default.removeObserver(MDCKeyboardWatcher.shared()) }
func textViewDidEndEditing() {
MDCKeyboardWatcher.load()
}
no buraknurcicek sir, how did you managed exactly