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

How to present a controller by giving some margin from Y axis? #170

Open
mohsinbmwm3 opened this issue Apr 18, 2019 · 0 comments
Open

How to present a controller by giving some margin from Y axis? #170

mohsinbmwm3 opened this issue Apr 18, 2019 · 0 comments

Comments

@mohsinbmwm3
Copy link

mohsinbmwm3 commented Apr 18, 2019

Hello,

I am trying to present a UIViewController with Presentr controller.

let width = ModalSize.custom(size: Float.init(scheduleDispPrefVC.preferredContentSize.width))
        let height = ModalSize.custom(size: Float.init(scheduleDispPrefVC.preferredContentSize.height))
        let center = ModalCenterPosition.customOrigin(origin: CGPoint(x: 0, y: 100))
        let customType = PresentationType.custom(width: width, height: height, center: center)
        
        presenter = Presentr.init(presentationType: customType)
        presenter?.backgroundOpacity = 0.25
        presenter?.transitionType = TransitionType.coverVerticalFromTop
        presenter?.dismissTransitionType = TransitionType.coverVerticalFromTop
        presenter?.backgroundTap = BackgroundTapAction.passthrough
        customPresentViewController(presenter!, viewController: scheduleDispPrefVC, animated: true)

ScheduleViewOption is the new vc which i am trying to present below app header but when it is presented then i am not able to click header buttons.
When I run this I get as shown in image.
Screenshot 2019-04-18 at 1 00 13 PM

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