-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add new iOS 11 api adjustedContentInset support #1020
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
@yiplee has updated the pull request. |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Awesome! Would love a change log entry and even a unit test for this. Sent with GitHawk |
Change log entry and unit test added :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last thing! Can you run the Examples/pod_setup.sh
script to make sure the examples projects have your new file included?
Yes, the new files have been included by pod. @rnystrom |
@yiplee are the examples building for you? |
@yiplee has updated the pull request. |
Generated by 🚫 Danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yiplee last change request from me!
I thought about this more over the holidays. There's a chance that this will change behavior and introduce bugs when people explicitly want the contentInset
and not the adjusted inset.
Could we instead provide a new API on the context, something like:
@protocol IGListCollectionContext
// ...
- (UIEdgeInsets)adjustedContainerInset;
// ...
@end
That way people can choose which they need w/out breaking any existing solutions?
@rnystrom I agree with you. But the bug will remain exist if people forget to replace |
@rnystrom It's OK. I will update the PR right now. 😄 |
ig styles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@yiplee has updated the pull request. View: changes, changes since last import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
adopt adjustedContentInset instead of contentInset on iOS 11
Checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.