Skip to content

Controller Moves up #186

@sohail-niazi

Description

@sohail-niazi

Hi, I am trying to show Popup with TextView in it... When I open keyboard for TextView it jumps up the screen. I am using Compress presentation style... Corner radius also goes away... For searchbar it works fine...
Here is my code for Controller presentation:

let presenter: Presentr = {
            let width = UIDevice.current.iPad ? ModalSize.fluid(percentage: 0.70) : ModalSize.sideMargin(value: 16)
            let height = ModalSize.fluid(percentage: 0.80)
            let center = ModalCenterPosition.customOrigin(origin: CGPoint(x: UIDevice.current.iPad ? (UIScreen.main.bounds.width/2)/4 : 16, y: (UIScreen.main.bounds.height/2)/4))
            let customType = PresentationType.custom(width: width, height: height, center: center)
            
            let customPresenter = Presentr(presentationType: customType)
            customPresenter.roundCorners = true
            customPresenter.backgroundColor = .black
            customPresenter.backgroundOpacity = 0.5
            customPresenter.dismissOnSwipe = true
            customPresenter.keyboardTranslationType = .compress
            customPresenter.dismissOnSwipeDirection = .bottom
            return customPresenter
        }()

Here is picture for issue :

Simulator Screen Shot - iPhone 12 Pro Max - 2021-08-24 at 15 24 23

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions