-
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
Added example schemes for Today/iMessage extensions #112
Conversation
Just as a secondary note I'm not sure how many of these changes are because it's a new scheme, I have a different version of CocoaPods or I simply made a mistake - revise checking! (Not big with CP) Also my justification for iOS 10 deployment target is because of the OS changes, Apple completely revamped both of them in iOS 10 so they're changed a fair bit (Can't even do iMessage extension in older versions, though strangely it's allowed?). However, if it is desired that they match the deployment target of the library then I'm happy to make these changes! |
@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. edit: hit the wrong button, not actually importing this yet |
@rnystrom I'm not sure how you guys would like to treat the extra schemes, whether you want a demo chooser similar to the main app or whether you want one example which shows that it's possible (probably with a bit more functionality than just a few cells) and leave the alternative examples to the main app? A bit of steer would be appreciated! cc: @jessesquires |
@Sherlouk updated the pull request - view changes - changes since last import |
@Sherlouk Ok finally got a chance to poke around at this, and WOW. This is so cool! 🚀 Some organizational nits:
@jessesquires check this out. cray: |
that's awesome 🎉 |
should we add this to the changelog? |
@Sherlouk updated the pull request - view changes - changes since last import |
@jessesquires good call, let's do that. cc @Sherlouk |
@rnystrom Thanks! ❤️ The "Today Extension" icon comes from the base app, but annoyingly the message app icon is completely different (they're slightly rectangular) so you can't use the same ones as the main app! Maybe a job for your design guys? Just seen the message about the changelog, I'll update that now! |
@Sherlouk updated the pull request - view changes - changes since last import |
Wasn't sure whether to just add to the bottom (as I did) or to add a new section "Example Pack Changes" which can be specifically for changes to the example pack to distinguish against modifications to the actual library. Happy to modify upon feedback! |
@Sherlouk updated the pull request - view changes - changes since last import |
There was something deep down inside me which meant I just had to move that storyboard once I saw it out of place! 😅 Also RIP travis? |
@@ -18,6 +18,7 @@ This release closes the [2.0.0 milestone](https://github.com/Instagram/IGListKit | |||
- Fixed `-[IGListAdapter reloadDataWithCompletion:]` not returning early when `collectionView` or `dataSource` is nil and `completion` is nil. [Ben Asher](https://github.com/benasher44) [(#51)](https://github.com/Instagram/IGListKit/pull/51) | |||
- Added `-isFirstSection` and `-isLastSection` APIs to `IGListSectionController` | |||
- Added support for cells created from storyboard. [Bofei Zhu](https://github.com/zhubofei) [(#92)](https://github.com/Instagram/IGListKit/pull/92) | |||
- Added examples for Today & iMessage extensions. [Sherlouk](https://github.com/Sherlouk) [(#112)](https://github.com/Instagram/IGListKit/pull/112) |
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.
👍
ha 😄 travis should be working ok (but will probably take awhile) |
Are we happy with the overall complexity of these examples? Started with very basic functionality, but not sure if I should do something a bit more exciting! Open to suggestions there, or just to leave it as is |
@Sherlouk - I think this is good for this PR. Feel free to open a new issue to discuss! 😄 |
Simple is good! More a proof of concept that this is possible w/ fairly minimal setup. The other thing this shows off is the fact that you can build a single section controller and share it between different targets/implementations! Pretty slick. @jessesquires should we make the |
While in a full application I'd probably agree with your suggestion there Ryan, I actually think in an example pack like this it's much easier to follow the chain of target membership if you can simply see the section controller can be used in multiple targets. Just my two cents :) |
yeah, agree with @Sherlouk 💯 |
Builds are done! 🎉 🎉 |
@Sherlouk updated the pull request - view changes - changes since last import |
@Sherlouk updated the pull request - view changes - changes since last import |
Not at all sure how I've increased unit tests 🤔 @rnystrom We waiting on anything specific to progress this? |
@Sherlouk nope! Landing internally right now |
Changes in this pull request
Offering this open to a bit of a discussion based on the comments at #77.
LabelSectionController
from the main appDone more as a 'yes it can be done' as opposed to 'look at what can be done' hence the basic functionality but I can see ways to improve if necessary!
Pull request checklist