Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller Moves up #186

Open
sohail-niazi opened this issue Aug 24, 2021 · 0 comments
Open

Controller Moves up #186

sohail-niazi opened this issue Aug 24, 2021 · 0 comments

Comments

@sohail-niazi
Copy link

sohail-niazi commented Aug 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant