Hi,
I'm fairly new to Swift and I'm currently experimenting with an app based on EventKit data. In this app the user will select a week in the current year, like week 10. I need a way to find the start and end date for the selected week (Monday March 8 and Sunday March 14 for week 10 (at least in Sweden)) This will then be used as predicate when fetching events from the calendar. I'm also thinking that I would like the solution to take into account the users current calendar settings, like firstWeekday etc.
I really can't seem to find a solution for this, anyone that can point me in the right direction?
Thanks in advance!
I'm fairly new to Swift and I'm currently experimenting with an app based on EventKit data. In this app the user will select a week in the current year, like week 10. I need a way to find the start and end date for the selected week (Monday March 8 and Sunday March 14 for week 10 (at least in Sweden)) This will then be used as predicate when fetching events from the calendar. I'm also thinking that I would like the solution to take into account the users current calendar settings, like firstWeekday etc.
I really can't seem to find a solution for this, anyone that can point me in the right direction?
Thanks in advance!