Contents

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 1 to 7, with Sunday being 1.

Return Value

The new day of the week.

Discussion

The week number of the returned day of the week is 0.

See Also

Creating a Day of the Week