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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
SnapKit crashes when calling updateConstraints
#752
Comments
override func viewDidAppear() {
|
Having the same issue here as well. Did you find any solution? We were able to reproduce it by triggering this method couple of times in a short period of time. Once we removed that, we were no longer able to reproduce it. However, now we can see in our Crashlytics that the crash still exists however we no longer can reproduce it. |
|
|
https://github.com/SnapKit/SnapKit/issues/752#issue-1209122751
|
|
Same issue, any update on this issue? |
You shouldn't be using Instead use If that doesn't resolve the issue try and isolate an example that can reproduce it if possible! |
New Issue Checklist
馃毇 If this template is not filled out your issue will be closed with no comment. 馃毇
Issue Info
Issue Description
The app crashes sometimes when calling
updateConstraints
.My code:
I suspected the function
doSomething
is called before theself.view.snp.makeConstraints
. Then I move theself.view.snp.makeConstraints
toviewDidLoad
. But this will cause the other crash:Any suggestion to prevent this kind of crash? Thanks.
The text was updated successfully, but these errors were encountered: