material-components-ios icon indicating copy to clipboard operation
material-components-ios copied to clipboard

MDCBottomSheet Not sticking to the bottom view when dragged upwards

Open nishant6042 opened this issue 4 years ago • 11 comments

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: Simulator Screen Shot - iPhone 8 - 2020-08-08 at 12 52 09

nishant6042 avatar Aug 08 '20 07:08 nishant6042

The title doesn't have a [Component] prefix.

please help me with this issue

nishant6042 avatar Aug 24 '20 05:08 nishant6042

its been 16 days since no one has replied..I am not getting this why it doesnt stick to the bottom

nishant6042 avatar Aug 24 '20 05:08 nishant6042

Hi @nishant6042, I'm not sure I understand. Could you provide a video of what's happening by any chance?

andrewoverton avatar Aug 27 '20 14:08 andrewoverton

Why anybody not replying...please help

nishant6042 avatar Sep 06 '20 10:09 nishant6042

please help with my issue. its been over a month since i posted my issue

nishant6042 avatar Sep 24 '20 09:09 nishant6042

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?

andrewoverton avatar Sep 24 '20 15:09 andrewoverton

please help with my issue. its been over a month since i posted my issue

how did you solve this problem ?

buraknurcicek avatar Dec 08 '20 23:12 buraknurcicek

fixed with this func customEventBeforeTextViewBeginEditing() { NotificationCenter.default.removeObserver(MDCKeyboardWatcher.shared()) }

func textViewDidEndEditing() {
    MDCKeyboardWatcher.load()
}

buraknurcicek avatar Jan 05 '21 10:01 buraknurcicek

no buraknurcicek sir, how did you managed exactly

nick70007 avatar Jan 05 '21 17:01 nick70007