CalendarKit icon indicating copy to clipboard operation
CalendarKit copied to clipboard

How to align "non-overlapped" events on 1 column?

Open hung-zappasoft opened this issue 2 years ago • 1 comments
trafficstars

I would like to make events which are not overlapped each other to stay on 1 column as described in the following screenshot. How could I do that? Thank you for your help

Screenshot 2023-05-22 at 5 36 03 pm

hung-zappasoft avatar May 22 '23 07:05 hung-zappasoft

Related to #113

To achieve your goal, feel free to fork the library (i.e. create your own modified version of this library) and modify the events layout algorithm to the one you wish. The event layout algorithm is available in the TimelineView here: https://github.com/richardtop/CalendarKit/blob/master/Sources/Timeline/TimelineView.swift#L394

This will be possible without forking the library with the introduction of a pluggable/custom layout algorithm injection.

richardtop avatar May 23 '23 04:05 richardtop