-
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
Make -[IGListAdapter updater] Public, Read-Only #379
Make -[IGListAdapter updater] Public, Read-Only #379
Conversation
I'm fine with this change. What's your use case?
|
I'd like to be able to assert that a list adapter passed into an API does not use |
Hmm... but you have to initialize the adapter with an |
Since the component that receives the adapter is not the one who initializes it, the adapter's owner would have to keep track of the updater separately and provide them both into this API. So |
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.
I've actually thought about exposing this before, so I'm down. There's honestly no drawback.
While we're at it, how about we clean it up a little too?
- Make sure to remove the internal property
- Can we rename the property to
updater
to that it matches the init? Also update the header doc
Sound good?
@@ -19,6 +19,8 @@ This release closes the [2.1.0 milestone](https://github.com/Instagram/IGListKit | |||
|
|||
- Added CocoaPods subspec for diffing, `IGListKit/Diffing` and an [installation guide](https://instagram.github.io/IGListKit/installation.html). [Sherlouk](https://github.com/Sherlouk) [(#368)](https://github.com/Instagram/IGListKit/pull/368) | |||
|
|||
- `IGListAdapter.updatingDelegate` is now public (read-only). [Adlai-Holler](https://github.com/Adlai-Holler) [(#379)](https://github.com/Instagram/IGListKit/pull/379) |
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.
Super nit: all of our changelog is in ObjC. Can we change the first part to -[IGListAdapter updatingDelegate]
@Adlai-Holler updated the pull request - view changes |
@rnystrom - want to just import this and forward-fix internally? |
@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@rnystrom The internal (readwrite) version of the property unfortunately needs to stay, because the tests use it: |
@Adlai-Holler updated the pull request - view changes - changes since last import |
593d6a2
to
bf24f58
Compare
@Adlai-Holler updated the pull request - view changes - changes since last import |
Cool. I've renamed |
@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Hey IGListKit folks! Would you be willing to expose this, so that other objects that are given a list adapter can inspect its updater configuration?
Pull request checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.