Skip to content

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

Description

@mohsinbmwm3

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

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