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

Debugger constraint warnings related to KeyboardAssistantBar and Presentr? #144

Open
robcecil opened this issue May 12, 2018 · 1 comment

Comments

@robcecil
Copy link

robcecil commented May 12, 2018

Not sure if this is something that lies in my code, but when I invoke the keyboard in a UIView that has been Presentr'ed, I see Xcode spill its guts with these warnings.

Any ideas?

( "<NSAutoresizingMaskLayoutConstraint:0x604000299870 h=--& v=--& UIKeyboardAssistantBar:0x7fe96f766bc0.height == 0 (active)>", "<NSLayoutConstraint:0x60c000292d40 V:|-(0)-[_UIButtonBarStackView:0x7fe96f7683f0] (active, names: '|':UIKeyboardAssistantBar:0x7fe96f766bc0 )>", "<NSLayoutConstraint:0x60c000292ed0 V:[_UIButtonBarStackView:0x7fe96f7683f0]-(0)-| (active, names: '|':UIKeyboardAssistantBar:0x7fe96f766bc0 )>", "<NSLayoutConstraint:0x60c00029d790 'UIButtonBar.maximumAlignmentSize' _UIButtonBarButton:0x7fe96f78ca90.height == UILayoutGuide:0x60c0001b8720'UIViewLayoutMarginsGuide'.height (active)>", "<NSLayoutConstraint:0x60c000292890 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x60c0001b8720'UIViewLayoutMarginsGuide']-(9)-| (active, names: '|':_UIButtonBarStackView:0x7fe96f7683f0 )>", "<NSLayoutConstraint:0x60c0002927f0 'UIView-topMargin-guide-constraint' V:|-(10)-[UILayoutGuide:0x60c0001b8720'UIViewLayoutMarginsGuide'] (active, names: '|':_UIButtonBarStackView:0x7fe96f7683f0 )>" )

@robcecil
Copy link
Author

My presenter:

lazy var loginPresenter: Presentr = { [unowned self] in
    let width = ModalSize.custom(size: 400)
    let height = ModalSize.custom(size: 500)
    let p = CGPoint(x: self.view.frame.origin.x + (self.view.frame.width / 2) - 200, y: 70)
    let center = ModalCenterPosition.customOrigin(origin: p)
    let customType = PresentationType.custom(width: width, height: height, center: center)
    let presenter = Presentr(presentationType: customType)
    presenter.blurBackground = false
    presenter.backgroundColor = UIColor.black
    presenter.backgroundOpacity = 0.4
    presenter.transitionType = .crossDissolve
    presenter.dismissTransitionType = .crossDissolve
    presenter.roundCorners = false
    presenter.dismissOnSwipe = false
    presenter.dismissOnTap = false
    presenter.keyboardTranslationType = .moveUp
    let shadow = PresentrShadow(shadowColor: UIColor.black, shadowOpacity: 0.3, shadowOffset: CGSize(width: 5, height: 5), shadowRadius: CGFloat(4.0))
    presenter.dropShadow = shadow
    return presenter
}()

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