Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark array of dates #31

Open
ucelme opened this issue Apr 26, 2021 · 0 comments
Open

Mark array of dates #31

ucelme opened this issue Apr 26, 2021 · 0 comments

Comments

@ucelme
Copy link

ucelme commented Apr 26, 2021

Hello. I want to pass to calendar array of dates which should be checked. I try to use loop inside

func calendar(_ calendar: JKCalendar, marksWith month: JKMonth) -> [JKCalendarMark]? {
    
    for item in habbit.dates {
        print(item)

        let today = JKDay(date: item)
        if today == month {
            return [JKCalendarMark(type: .circle, day: today, color: .systemGreen)]
        }
    }
    return nil
    
}

but it doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant