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

Image view now shows the correct image when the cell is reused #177

Conversation

logannathanson
Copy link

This fixes a bug that causes an image brick cell to not properly reset before reusing it.

}



Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this extra space

override open func prepareForReuse() {
super.prepareForReuse()
imageView.image = nil
currentImageURL = nil
Copy link
Contributor

Choose a reason for hiding this comment

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

I think imageLoaded and currentImageURL need to be reset too

Copy link
Author

Choose a reason for hiding this comment

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

Updated to add in imageLoaded as well

@logannathanson logannathanson force-pushed the verticals/10951009/Reset-Image-Before-Reuse branch 5 times, most recently from c7ee9ab to 034389f Compare August 28, 2017 18:11
@logannathanson logannathanson force-pushed the verticals/10951009/Reset-Image-Before-Reuse branch from 034389f to 035ca8b Compare August 28, 2017 19:07
@codecov-io
Copy link

codecov-io commented Aug 28, 2017

Codecov Report

Merging #177 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #177      +/-   ##
==========================================
+ Coverage   93.45%   93.46%   +<.01%     
==========================================
  Files          40       40              
  Lines        4247     4253       +6     
  Branches      348      348              
==========================================
+ Hits         3969     3975       +6     
  Misses        277      277              
  Partials        1        1
Impacted Files Coverage Δ
Source/Bricks/Image/ImageBrick.swift 82.91% <100%> (+0.67%) ⬆️

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 17bfb7d...035ca8b. Read the comment docs.

@jay18001 jay18001 merged commit e732c03 into wayfair-archive:master Aug 28, 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.

3 participants