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

Callback when frames have layout correctly #161

Closed
rubencagnie opened this issue Jul 17, 2017 · 0 comments
Closed

Callback when frames have layout correctly #161

rubencagnie opened this issue Jul 17, 2017 · 0 comments

Comments

@rubencagnie
Copy link
Contributor

Given a dataSource that is dependent on the frames that are laid out in the Brick (for instance, fetch an image of the size of the UIImageView)
Calling this in updateContent, the imageView is not set correctly yet. That means that the frame will be calculated too early

rubencagnie added a commit that referenced this issue Jul 17, 2017
On layoutSubviews, the cell will now verify if the width of the frame is equal to the expected width. If so, `framesDidLayout` will be called. This way, the brick can get informed that the frames are set correctly and images etc can be fetched.

Fixes #161
rubencagnie added a commit that referenced this issue Jul 18, 2017
On layoutSubviews, the cell will now verify if the width of the frame is equal to the expected width. If so, `framesDidLayout` will be called. This way, the brick can get informed that the frames are set correctly and images etc can be fetched.

Fixes #161
rubencagnie added a commit that referenced this issue Jul 18, 2017
On layoutSubviews, the cell will now verify if the width of the frame is equal to the expected width. If so, `framesDidLayout` will be called. This way, the brick can get informed that the frames are set correctly and images etc can be fetched.

Fixes #161
rubencagnie added a commit that referenced this issue Jul 19, 2017
On layoutSubviews, the cell will now verify if the width of the frame is equal to the expected width. If so, `framesDidLayout` will be called. This way, the brick can get informed that the frames are set correctly and images etc can be fetched.

Fixes #161
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