This repository was archived by the owner on Aug 14, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Properly copy attributes before modifying in JSQMessagesCollectionViewFlowLayout #1868
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closed
Current coverage is 61.27% (diff: 50.00%)@@ develop #1868 diff @@
==========================================
Files 62 62
Lines 2249 2249
Methods 608 608
Messages 0 0
Branches 135 135
==========================================
Hits 1378 1378
Misses 797 797
Partials 74 74
|
@jessesquires I can reproduce the original problem in the demo app:
I get the following in my console:
With this PR the problem is gone. I'm doing here exactly what the log message suggests - don't modify attributes returned by UICollectionViewFlowLayout, instead make copies. Inspired by this: http://stackoverflow.com/a/33172179 |
Thanks @algrid ! 💯 |
Luke47
pushed a commit
to ubergrape/JSQMessagesViewController
that referenced
this pull request
Jan 30, 2017
tom1199
added a commit
to tom1199/JSQMessagesViewController
that referenced
this pull request
Apr 6, 2017
- Fix issue: jessesquires#1424
pcoltau
added a commit
to TeletronicsDotAe/JSQMessagesViewController
that referenced
this pull request
Apr 16, 2017
…ViewController into develop * 'develop' of https://github.com/jessesquires/JSQMessagesViewController: (200 commits) fix documentation (jessesquires#2037) Added Ginger.io to apps using this library (jessesquires#2017) Adding LŌC to list of apps using this library (jessesquires#2004) Update apps_using_this_library.md (jessesquires#1989) Added support to set placeholder insets (jessesquires#1908). Close jessesquires#1907 ImageOptim on assets (jessesquires#1845) Update PULL_REQUEST_TEMPLATE.md Update ISSUE_TEMPLATE.md Update .travis.yml (jessesquires#1937) Update .travis.yml Add Bosnian and Croatian localization (jessesquires#1928) Added app StudyBuddy (jessesquires#1920) Added Creds to Core team (jessesquires#1905) Add Danish translation of JSQMessages.strings (jessesquires#1898) Update apps_using_this_library.md (jessesquires#1896) Update .travis.yml to run XCode8 (jessesquires#1872) Copy attributes before modifying in layout (jessesquires#1868). Close jessesquires#1218 Update ISSUE_TEMPLATE.md fix warnings/errors cleanup from PR jessesquires#1823 ...
pietrorea
pushed a commit
to upsidetravel/JSQMessagesViewController
that referenced
this pull request
Jul 24, 2017
Close jessesquires#1218" This reverts commit cebe876.
FWAlex
added a commit
to FWAlex/JSQMessagesViewController
that referenced
this pull request
Sep 29, 2017
* develop: (120 commits) Update podspecs Update README.md Add czech localization. (jessesquires#2130) fix documentation (jessesquires#2037) Added Ginger.io to apps using this library (jessesquires#2017) Adding LŌC to list of apps using this library (jessesquires#2004) Update apps_using_this_library.md (jessesquires#1989) Added support to set placeholder insets (jessesquires#1908). Close jessesquires#1907 ImageOptim on assets (jessesquires#1845) Update PULL_REQUEST_TEMPLATE.md Update ISSUE_TEMPLATE.md Update .travis.yml (jessesquires#1937) Update .travis.yml Add Bosnian and Croatian localization (jessesquires#1928) Added app StudyBuddy (jessesquires#1920) Added Creds to Core team (jessesquires#1905) Add Danish translation of JSQMessages.strings (jessesquires#1898) Update apps_using_this_library.md (jessesquires#1896) Update .travis.yml to run XCode8 (jessesquires#1872) Copy attributes before modifying in layout (jessesquires#1868). Close jessesquires#1218 ... # Conflicts: # CHANGELOG.md # JSQMessagesViewController.podspec
mbesnili
pushed a commit
to mbesnili/JSQMessagesViewController
that referenced
this pull request
Oct 20, 2017
* develop: (102 commits) Update .travis.yml to run XCode8 (jessesquires#1872) Copy attributes before modifying in layout (jessesquires#1868). Close jessesquires#1218 Update ISSUE_TEMPLATE.md fix warnings/errors cleanup from PR jessesquires#1823 fix a bug on demo that can't copy successfully. (jessesquires#1871) Finished video thumbnail feature (jessesquires#1823) fix footer for header in swift example (jessesquires#1833) Fix for preloading textview and resizing it (jessesquires#1865) close jessesquires#1709 added swedish localization (jessesquires#1847) Update Swift example to Xcode 8 GM Swift 3.0 syntax (jessesquires#1825) empty icons cherry pick d6cdf18 by @jstart from master link to detailed instructions for custom cells (jessesquires#1828) close jessesquires#1768. Assign each UIView element an identifier to make it visible under UI-Testing (jessesquires#1775) Input bar support dynamic type (jessesquires#1793) Update CHANGELOG.md cleanup xcode8 beta4 updates Changed sendButtonOnRight to sendButtonLocation (jessesquires#840) ... # Conflicts: # JSQMessages.xcodeproj/project.pbxproj # JSQMessagesDemo/DemoMessagesViewController.m # JSQMessagesViewController/Views/JSQMessagesComposerTextView.h # Podfile # Podfile.lock # Pods/Manifest.lock # Pods/Pods.xcodeproj/project.pbxproj # Pods/Target Support Files/JSQSystemSoundPlayer/JSQSystemSoundPlayer.xcconfig # Pods/Target Support Files/Pods-JSQMessages/Pods-JSQMessages-acknowledgements.markdown # Pods/Target Support Files/Pods-JSQMessages/Pods-JSQMessages-acknowledgements.plist # Pods/Target Support Files/Pods-JSQMessages/Pods-JSQMessages-frameworks.sh # Pods/Target Support Files/Pods-JSQMessages/Pods-JSQMessages.debug.xcconfig # Pods/Target Support Files/Pods-JSQMessages/Pods-JSQMessages.release.xcconfig # Pods/Target Support Files/Pods-JSQMessagesTests/Pods-JSQMessagesTests-resources.sh # Pods/Target Support Files/Pods-JSQMessagesTests/Pods-JSQMessagesTests.debug.xcconfig # Pods/Target Support Files/Pods-JSQMessagesTests/Pods-JSQMessagesTests.release.xcconfig # Pods/Target Support Files/Pods/Pods-acknowledgements.markdown # Pods/Target Support Files/Pods/Pods-acknowledgements.plist # Pods/Target Support Files/Pods/Pods-frameworks.sh # SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-acknowledgements.markdown # SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-acknowledgements.plist # SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-frameworks.sh # SwiftExample/Pods/Target Support Files/Pods-SwiftExampleTests/Pods-SwiftExampleTests-acknowledgements.markdown # SwiftExample/Pods/Target Support Files/Pods-SwiftExampleTests/Pods-SwiftExampleTests-acknowledgements.plist # SwiftExample/Pods/Target Support Files/Pods-SwiftExampleTests/Pods-SwiftExampleTests-frameworks.sh
N-Pex
pushed a commit
to N-Pex/JSQMessagesViewController
that referenced
this pull request
Jan 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request checklist
This fixes issue #1218
What's in this pull request?
Ensure that attributes array is properly copied before modification.
Could also fix #1424 but I'm not sure about that.