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

CornerRadius not working #151

Closed
omarojo opened this issue Jun 1, 2018 · 1 comment
Closed

CornerRadius not working #151

omarojo opened this issue Jun 1, 2018 · 1 comment

Comments

@omarojo
Copy link

omarojo commented Jun 1, 2018

let presenter: Presentr = {
let customPresenter = Presentr(presentationType: .popup)
        customPresenter.transitionType = .coverVerticalFromTop
        customPresenter.dismissTransitionType = .coverVertical
        customPresenter.roundCorners = true
        customPresenter.cornerRadius = 10
        customPresenter.backgroundColor = .purple
        customPresenter.backgroundOpacity = 0.3
        customPresenter.dismissOnSwipe = true
        customPresenter.dismissOnSwipeDirection = .bottom
        return customPresenter
}()

loading the presented ViewController like this

let previewVC = G8ARMediaPreviewVC.init(nibName: "G8ARMediaPreviewVC", bundle: FRAMEWORK_BUNDLE)

customPresentViewController(presenter, viewController: previewVC, animated: true, completion: nil)
@danlozano
Copy link
Contributor

Thanks! looking into it over here #145

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

2 participants