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

Crashing when trying to load #49

Open
cesarmtz93 opened this issue Mar 21, 2019 · 1 comment
Open

Crashing when trying to load #49

cesarmtz93 opened this issue Mar 21, 2019 · 1 comment

Comments

@cesarmtz93
Copy link

cesarmtz93 commented Mar 21, 2019

Getting this error @loganwright, @little2s haven't figure out the why on this!

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSLayoutConstraint for <SimpleChat.LGChatInput: 0x7fd0e67008f0; frame = (0 0; 0 0); layer = <CALayer: 0x6000004d2a40>>: Constraint items must each be a view or layout guide.

update
triggered on this line

self.bottomChatInputConstraint = NSLayoutConstraint(item: chatInput, attribute: .bottom, relatedBy: .equal, toItem: self.view.safeAreaLayoutGuide.bottomAnchor, attribute: .top, multiplier: 1.0, constant: 0)
@cesarmtz93
Copy link
Author

I changed the

self.view.safeAreaLayoutGuide.bottomAnchor

to only

self.view.safeAreaLayoutGuide

self.bottomChatInputConstraint = NSLayoutConstraint(item: chatInput, attribute: .bottom, relatedBy: .equal, toItem: self.view.safeAreaLayoutGuide, attribute: .top, multiplier: 1.0, constant: 0)

and it no longer crashed the next problem that I encountered is that it's not rendering the messages or toolbar

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