init(_:)
Creates and returns a day of the week with a given day.
Declaration
convenience init(_ dayOfTheWeek: EKWeekday)Parameters
- dayOfTheWeek:
The day of the week. Values range from
1to7, with Sunday being1.
Return Value
The new day of the week.
Discussion
The week number of the returned day of the week is 0.