CalendarKit icon indicating copy to clipboard operation
CalendarKit copied to clipboard

Landscape layout / Week (multiday) view, support multiple days

Open rugheid opened this issue 8 years ago • 8 comments

The layout falls apart in landscape mode.

rugheid avatar Feb 23 '17 11:02 rugheid

It's a known issue, see roadmap. Two options are possible: Either fix and use current layout in landscape (which is inconsistent with Apple's calendar or re-write calendar to match Apple style. I'll mark your task as a feature request for now.

richardtop avatar Feb 23 '17 15:02 richardtop

Ok, perfect. I would vote for the Apple compatible option, since there are currently no swift libraries that support a week-view.

rugheid avatar Feb 23 '17 15:02 rugheid

Agree, but actually, it is possible to implement both with option 1 as transitory. At some stage it was working: image

richardtop avatar Feb 23 '17 15:02 richardtop

You're right, fixing the layout should be manageable in a shorter timeframe. The full week view would be a nice improvement for the future.

rugheid avatar Feb 23 '17 16:02 rugheid

@richardtop any news on this topic? A week view would be awesome, especially for iPads. I think you probably don't have the time to implement this feature.... so could you give me an idea how to implement something like that? I am just starting to learn Swift and UIKit, so i need some instructions 😅

niklasgrewe avatar Aug 12 '21 13:08 niklasgrewe

Yes, I'm interested in this feature implemented. To get it done, it would require creating a custom view/controller at the level of TimelinePagerView: https://github.com/richardtop/CalendarKit/blob/master/Source/Timeline/TimelinePagerView.swift

in that controller, you could use 5/7 components of TimelineContainer to display each column. In addition to that, the new WeekTimelinePagerView will need to handle drag&drop & editing, which complicates things more. But that's how you could code this functionality.

richardtop avatar Aug 15 '21 22:08 richardtop