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

SpotlightLayoutBehavior now calls attributesDidUpdate #5

Merged
merged 1 commit into from
Oct 24, 2016

Conversation

rubencagnie
Copy link
Contributor

Because attributesDidUpdate wasn’t called, the BrickZones weren’t updated. This resulted in layoutAttributesForElementsInRect returning the wrong data
Fixes #4

Because `attributesDidUpdate` wasn’t called, the `BrickZones` weren’t updated. This resulted in `layoutAttributesForElementsInRect` returning the wrong data
Fixes #4
DummyBrick(height: .Fixed(size: height)),
DummyBrick(height: .Fixed(size: height)),
DummyBrick(height: .Fixed(size: height)),
])
Copy link
Contributor

@klundberg klundberg Oct 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use init(count:repeatedValue) here I think:

let section = BrickSection(bricks: Array(count: 6, repeatedValue: DummyBrick(height: .Fixed(size: height))))

@rubencagnie rubencagnie merged commit 46ac434 into master Oct 24, 2016
@rubencagnie rubencagnie deleted the 4-spotlightlayoutbehavior-hidden-bricks branch October 25, 2016 14:35
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

Successfully merging this pull request may close these issues.

2 participants