CalendarKit icon indicating copy to clipboard operation
CalendarKit copied to clipboard

Pinch to zoom gesture

Open richardtop opened this issue 7 years ago • 6 comments

@fanstudiouk

"Another thing that I believe it's missing or would be nice to have: when we have appointments of 10-15 minutes the height is too small and you can't see the content. It would be nice to be able to zoom-in our and adjust the timeline view height."

richardtop avatar May 17 '17 12:05 richardtop

@fanstudiouk

In TimelineView.swift change to var verticalDiff: CGFloat = 160 this increases the width to show more events within an hour.

mukulm24 avatar Jul 25 '17 04:07 mukulm24

Any update?

ClaudioPerroni avatar Aug 01 '19 13:08 ClaudioPerroni

There is no verticalDiff in TimelineView.swift

The right way to do so is from TimelineStyle

    let timeline = TimelineStyle()
    timeline.verticalDiff = 160

jbarros35 avatar Nov 25 '19 17:11 jbarros35

@jbarros35 correct. Also, it's important to not forget to call updateStyle method on the DayView.

richardtop avatar Nov 25 '19 17:11 richardtop

We're talking about a pinch gesture, right? If so, then it is likely that I will do it in a couple of months.

RareScrap avatar Nov 11 '20 09:11 RareScrap

@RareScrap great, thanks! Looking forward to it.

richardtop avatar Nov 12 '20 20:11 richardtop