-
Notifications
You must be signed in to change notification settings - Fork 274
Open
Description
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 :
Metadata
Metadata
Assignees
Labels
No labels
