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

Provide a way to override brick cell content after the updateContent #58

Merged
merged 5 commits into from
Jan 12, 2017

Conversation

wfsttam
Copy link
Contributor

@wfsttam wfsttam commented Jan 6, 2017

  • provides a means of showing placeholder content

@@ -24,6 +24,16 @@ public protocol BrickCellTapDelegate: UIGestureRecognizerDelegate {
func didTapBrickCell(brickCell: BrickCell)
}

public protocol OverrideContentSource: class {
func overrideContent(forBrickCell brickCell: BrickCell)
Copy link
Contributor

Choose a reason for hiding this comment

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

What about the resetCell function to clean up the placeholder views?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@@ -24,6 +24,16 @@ public protocol BrickCellTapDelegate: UIGestureRecognizerDelegate {
func didTapBrickCell(brickCell: BrickCell)
}

public protocol OverrideContentSource: class {
func overrideContent(forBrickCell brickCell: BrickCell)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's do it "swift 3"-style

func overrideContent(for cell: BrickCell)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@wfsttam wfsttam changed the title Create protocol that is called at the end of reloadContent Provide a way to override brick cell content after the updateContent Jan 6, 2017
…k cell

            - provides a way to show content while content is not available yet
            - added tests
            - example included in 'DynamicContentViewController'
}

extension OverrideContentSource {
public func overrideContent(for brickCell: BrickCell) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@codecov-io
Copy link

codecov-io commented Jan 9, 2017

Current coverage is 93.65% (diff: 100%)

No coverage report found for master at 6c9e16f.

Powered by Codecov. Last update 6c9e16f...5f39d6e

@wfsttam wfsttam changed the title Provide a way to override brick cell content after the updateContent Provide a way to override brick cell content after the updateContent Fixes #46 Jan 11, 2017
@wfsttam wfsttam changed the title Provide a way to override brick cell content after the updateContent Fixes #46 Provide a way to override brick cell content after the updateContent Jan 11, 2017
@wfsttam
Copy link
Contributor Author

wfsttam commented Jan 11, 2017

Adds ability to insert temporary content or override content into a brick cell after updateContent is called: Fixes #46

@wfsttam wfsttam closed this Jan 11, 2017
@wfsttam wfsttam reopened this Jan 11, 2017
@rubencagnie rubencagnie merged commit 6fcca01 into wayfair-archive:master Jan 12, 2017
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.

None yet

3 participants