RaffiKian / RKCalendar

SwiftUI Simple Calendar / Date Picker for iOS
MIT License
535 stars 71 forks source link

Custom color for a day #15

Open SYM1000 opened 4 years ago

SYM1000 commented 4 years ago

Great work with the calendar library. Is there any way to mark a day and mark the day with a specific color?

workingDog commented 4 years ago

you could try this:

    rkManager1.selectedDates = [Date().addingTimeInterval(60*60*24*2)]
    rkManager1.colors.selectedBackColor = Color.green
    rkManager1.colors.selectedColor = Color.purple

Note, this will change the color for all dates in selectedDates, but if you only put one in...