PanModal icon indicating copy to clipboard operation
PanModal copied to clipboard

Not working with IQKeyboardManager ?

Open zzzzzyijie opened this issue 4 years ago • 3 comments

Description

Describe your issue here.

What type of issue is this? (place an x in one of the [ ])

  • [ ] bug
  • [ ] enhancement (feature request)
  • [x] question
  • [ ] documentation related
  • [ ] testing related
  • [ ] discussion

Requirements (place an x in each of the [ ])

  • [ ] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [ ] I've read and agree to the Code of Conduct.
  • [ ] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

PanModal version: lastest

iOS version: iOS13


Hope support ~

zzzzzyijie avatar Jul 20 '20 09:07 zzzzzyijie

Yes, I have the same issue

minaMagedNaeem avatar Aug 30 '20 18:08 minaMagedNaeem

I hace the same issue

MahmoudZinji avatar Mar 04 '21 09:03 MahmoudZinji

My solution was something like this

var longFormHeight: PanModalHeight {
        if  IQKeyboardManager.shared.keyboardShowing == true {
            
            return .contentHeight(362.5+216+panModelExtraPadding)
        }else{
            return .contentHeight(362.5)
        }
    }

The panmodel extra padding is the touch position in a textfield for example that i get from a delegate 216 is the height of the Keyboard when it is presented 362.5 is the height of my view as the design from storyboard

MahmoudZinji avatar Mar 04 '21 09:03 MahmoudZinji