Quivr / iOS-Week-View

QVRWeekView is a framework which provides a calendar view that can be customized to display between 1 to 7 days in both portrait and landscape mode. Includes customization features to customize colours, fonts and sizes.
MIT License
39 stars 21 forks source link

How to custom event view? #15

Closed clbemre closed 4 years ago

clbemre commented 5 years ago

Shadow,Corner Radius and Center Title?

reilem commented 5 years ago

These customisation features haven't been added yet. I don't immediately have time to implement these but feel free to give it a go yourself :)

clbemre commented 5 years ago

So, how? :)

stomper3579 commented 5 years ago

Did you ever find out how to add a corner radius? I've been unsuccessful so far :(

clbemre commented 5 years ago

No, im sorry :)

reilem commented 5 years ago

I have added an eventStyleCallback property that you can use to access each event layer and customise it your hearts content, such as adding corner radius, border width, shadow, etc. If you wish to access the text layer then you can iterate over the sublayers of the CALayer until you find a CATextLayer, this you can also customise, or even remove and add your own.

Let me know if there are any issues with it.

reilem commented 4 years ago

Closing, since this is now solved :)