airbnb / HorizonCalendar

A declarative, performant, iOS calendar UI component that supports use cases ranging from simple date pickers all the way up to fully-featured calendar apps.
Apache License 2.0
2.83k stars 235 forks source link

Week View #27

Open rs658726 opened 4 years ago

rs658726 commented 4 years ago

Hello,

Are there any plans to implement a week view in the near future?

bryankeller commented 4 years ago

Hi @rs658726 - do you mean something like this?

image

If so, my answer is: we don't have plans to support that right now, but if there's enough people asking for this, then maybe 🙂

rs658726 commented 4 years ago

Yes, that's it. The 2 most popular iOS calendar libraries support this and it is a highly requested feature. Thank you.

dcramps commented 3 years ago

+1, I would like to see this as well. JTAppleCalendar has some big issues with how it does layout, and this is the only feature stopping me from switching right now.

jsryudev commented 3 years ago

+1, I need this too.

bryankeller commented 3 years ago

For full transparency, there are no plans to support this. My recommendation would be to build this single-row view as just a horizontally-scrolling collection view. The code for it should be pretty simple, and you should be able to accomplish it using flow layout or compositional layout. You could even reuse DayView.swift and DayOfTheWeekView.swift to ensure that the stylings are the same, if you're doing transitions between HorizonCalendar and your custom single-row view.

DoctorP96 commented 11 months ago

Any minds changed regarding this feature @bryankeller ?