CalendarKit
CalendarKit copied to clipboard
Support custom views as as the EventView
Hey, is there any way to get to get the frame coordinates:(x position, y position, height, width) from an event that i created on the timelineView.
Result I am trying to achieve
I want to add my own custom view on top of my event in the exact position to simulate an event view, because the event view isn't that customizable. I want to add buttons and add uilabels to the custom view, as well as shadows.
I would very greatly appreciate help with this problem, or if you could add more customization to the eventview.
Hi @johnnyperdomo, Could you please share the result you're trying to achieve? You can mock it with Sketch/Photoshop or any other graphic editing software.
We could rephrase the question and consider it "CK doesn't support custom views as as the EventView
".

I would like to make my own custom eventView, is there any way to achieve this? If not, how can we accomplish something like this in the very near future?
@johnnyperdomo could you put these screenshot in context? I.e. how they would look on a timeline?

this, instead of colored event view. let's me build and customize how i want; just adding a simple uiview to event should allow this. i Just don't know how π
@johnnyperdomo if you look inside e.g. Timeline
, you'll notice the code to support a custom UIView
subclass, but there is no interface to connect a custom view to the rest of the library. I won't extend this feature now, but you could try implement it yourself and submit a pull request.
Alternatively, you could "Slice&Dice" the CalendarKit and build your own calendar from scratch (as the Kit initially intended to be)
1)What do you mean by, βthere is no interface to connect a custom view to the rest of library?β
- is there a way to get position of event frame?
- It's impossible now to register a custom view to be used as the
EventView
, similarly to how theUITableView
orUICollectionView
supports custom views. - No, currently the layout process is hidden inside the CalendarKit (
TimelineView
)
@johnnyperdomo Hi there, did you manage to customize event view?
@dotWasim I actually haven't worked on it. You can give it a shot if you'd like.
ok, I will implement it and send pull request. @richardtop any suggestions or notes ?
Hi @dotWasim try to follow the interface of UICollectionView
, however move View Management to the CalendarKit itself and pass the needed ViewClass
inside the Event
or EventDescriptor
.
Please, point your WIP pull request here with the [WIP] tag so I'd be able to give you feedback as you go.
This should be easy feature, so good luck with it.
Has anyone already implemented this feature?
Any1 had tried to customise the eventView ?