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
Calendar Support #229
Calendar Support #229
Conversation
Thanks @SoneeJohn ! I'll review this as soon as I can |
@insidegui I was planning to save the session identifier along with the eventIdentifier of EKEvent so that the user can remove it from their calendar. However, I was wondering if that would be too much. |
@SoneeJohn you can add that as a property to |
@insidegui thanks! I'll look into this tomorrow. |
@VicenteBorrell Can you get us an icon for the "add to calendar" feature? It will only be useful next year, but nice to have :) |
Yeah, no problem! I was thinking, maybe we could leave it for next year. I would like to improve the session detail layout, adding location and time, and put the icon next to it. |
@insidegui finished :-) All what might be needed now is a new calendar icon from @VicenteBorrell |
Pulling latest changes
# Conflicts: # WWDC.xcodeproj/project.pbxproj
@VicenteBorrell Since @SoneeJohn has already done all the hard work of implementing calendar support, I don't think we should wait until next year to merge this. Can you get us an icon for the feature? Thanks |
You can find the icon on the Sketch file @insidegui |
I updated the icon. Thanks @VicenteBorrell ! |
@SoneeJohn I made some changes to the implementation and migrated it to our code style and recent changes. You can see the updated branch here: https://github.com/insidegui/WWDC/tree/calendar Can you make it so the calendar button only appears for sessions that are in the future? There's no point in showing it for sessions that have already passed. |
@insidegui I see @bcmn beat me to it ;-) 5c14187 |
Pulling latest changes
Oh oops, I thought I’d commented here, sorry. 😬 Gui tried to prod me too after I added it just from seeing activity on the branch. 😂 Yeah, it’s currently based on the endTime of the session, which seems like it allows a bit more buffer for edge use cases, I don’t know if anyone disagrees. |
@bcmn No worries 😂. I think it would be better if the button simply don’t show up if the startTime is now in the past. |
Yeah, I think you're right. I think I wavered when deciding and then made the choice based on an incorrect memory of how much of the event details we surface in UI. I changed it. |
Yeah I agree, there's no point in adding an event that has already started to your calendar ¯_(ツ)_/¯ I'll do some more testing tonight and merge after reviewing the changes. Thanks |
I noticed today while I was viewing sessions on my computer that there is no support for quickly adding a session to the calendar. The officially WWDC app has this so I thought I should add it.
By the way, thanks for the awesome app @insidegui 🙂
TODO:
Support for adding session to the calendar
Only show calendar button when WWDC is active
Store eventIdentifier somewhere so it can be referenced later so the user can remove the event from the app