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

No completion block for all constraints #187

Closed
teradyl opened this issue Jan 20, 2016 · 1 comment
Closed

No completion block for all constraints #187

teradyl opened this issue Jan 20, 2016 · 1 comment

Comments

@teradyl
Copy link

teradyl commented Jan 20, 2016

There is some blur code I would like to run after all my views are setup with the correct sizes, but without a callback after all of the constraint blocks have finished setting everything up, I am unable to find a place to reliably run the blur code. It seems like this would be an important addition for SnapKit.

@robertjpayne
Copy link
Member

@teradyl the closures are all run synchronously so you do not need a callback.

You likely want to run blur code in viewDidLayoutSubviews in a UIViewController or layoutSubviews in a UIView. Take mind of these two methods though as they are called very frequently you will want to cache blur results based on frame sizes.

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