jasudev / AxisContribution

A library that expresses a github contribution calendar through an array of dates. Supports iOS and macOS.
MIT License
111 stars 24 forks source link

Allow updating date data after first appearance #1

Closed moophis closed 1 year ago

moophis commented 1 year ago

Hi! Thanks for this awesome library! I'm trying to pull it to my projects and found a problem where the data cannot be updated after the initial render. So here is my attempt to fix it - basically once the data changes, we update the store to update the UI.

I also updated the example code to generate random dates on button taps.

https://user-images.githubusercontent.com/2663719/221327144-7d4f53d5-ccc4-497e-a044-6f962c39b1a8.mp4

jasudev commented 1 year ago

Thanks for the contribution :)