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

Updated height provider code to be a closure #191

Merged
merged 2 commits into from
Sep 27, 2017
Merged

Updated height provider code to be a closure #191

merged 2 commits into from
Sep 27, 2017

Conversation

vlozko
Copy link
Contributor

@vlozko vlozko commented Sep 26, 2017

Allows for more flexibility in specifying a custom height. Also happens to fix a potential memory leak.

@codecov-io
Copy link

codecov-io commented Sep 26, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@fa2d3ad). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #191   +/-   ##
=========================================
  Coverage          ?   93.41%           
=========================================
  Files             ?       40           
  Lines             ?     4392           
  Branches          ?      359           
=========================================
  Hits              ?     4103           
  Misses            ?      288           
  Partials          ?        1
Impacted Files Coverage Δ
Source/Bricks/Generic/GenericBrick.swift 99.32% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa2d3ad...5c29294. Read the comment docs.

@@ -77,7 +73,7 @@ open class GenericBrickCell: BrickCell {
}
}

open var customHeightProvider: CustomHeightProvider?
open var customHeightProvider: ((_ width: CGFloat) -> CGFloat)?
Copy link
Contributor

Choose a reason for hiding this comment

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

Put this in a typealias

@jay18001 jay18001 changed the title Updated height provider code to be a closure, Updated height provider code to be a closure Sep 27, 2017
@jay18001 jay18001 merged commit c4922c5 into wayfair-archive:master Sep 27, 2017
willspurgeon pushed a commit to willspurgeon/brickkit-ios that referenced this pull request Oct 23, 2017
mamccarthy added a commit to mamccarthy/brickkit-ios that referenced this pull request Nov 14, 2017
… Edge Insets Functionality

Squashed Commit of the following:

commit 89ef650
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Thu Nov 9 10:16:10 2017 -0500

    Added additional verbose logging to refresh/reloading of data.

commit cee70e8
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Thu Nov 2 15:05:39 2017 -0400

    Clear prefetch index paths upon invalidation. Written by nlobue

commit c760425
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Mon Oct 30 16:50:56 2017 -0400

    Fix for a crash that can occur if the first index is greater the number of items.

commit a838e8d
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Mon Oct 23 14:15:58 2017 -0400

    Updated height provider code to be a closure (wayfair-archive#191). Fix by vlozko.

commit 5e21936
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Wed Oct 18 14:06:09 2017 -0400

    Fix for crash

commit 48846ee
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Fri Oct 13 10:04:59 2017 -0400

    Attempt to fix a crash

commit e6d3c6d
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Thu Oct 5 17:28:58 2017 -0400

    Added a flag that determines which version of the inset updating code is run.
jay18001 pushed a commit that referenced this pull request Nov 20, 2017
… Edge Insets Functionality (#202)

* Stability, Layout, and Logging Enhancements; Added Support for Legacy Edge Insets Functionality

Squashed Commit of the following:

commit 89ef650
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Thu Nov 9 10:16:10 2017 -0500

    Added additional verbose logging to refresh/reloading of data.

commit cee70e8
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Thu Nov 2 15:05:39 2017 -0400

    Clear prefetch index paths upon invalidation. Written by nlobue

commit c760425
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Mon Oct 30 16:50:56 2017 -0400

    Fix for a crash that can occur if the first index is greater the number of items.

commit a838e8d
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Mon Oct 23 14:15:58 2017 -0400

    Updated height provider code to be a closure (#191). Fix by vlozko.

commit 5e21936
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Wed Oct 18 14:06:09 2017 -0400

    Fix for crash

commit 48846ee
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Fri Oct 13 10:04:59 2017 -0400

    Attempt to fix a crash

commit e6d3c6d
Author: Will Spurgeon <wspurgeon@wayfair.com>
Date:   Thu Oct 5 17:28:58 2017 -0400

    Added a flag that determines which version of the inset updating code is run.

* Fix crash when changing repeat counts; Add unit tests for it

* Line spacing fix, per PR comment

* Replace XCTAssertEqual with XCTAssertEqualWithAccuracy due to Swift version
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.

3 participants