CalendarDates
class CalendarDates
Represents a range of dates that the calendar displays
-
Calendar
Declaration
Swift
let calendar: Calendar -
Start date
Declaration
Swift
let startDate: Date -
Number of dates in total
Declaration
Swift
let numDates: Int -
Number of rows if each weak is a row
Declaration
Swift
var numWeekRows: Int { get } -
Today
Declaration
Swift
let today: Date -
Month of today
Declaration
Swift
let todayMonth: Int -
Index, from start date, of today
Declaration
Swift
let indexForToday: Int -
Stale if today is now longer today
Declaration
Swift
var stale: Bool { get } -
Undocumented
Declaration
Swift
init() -
Get first day of week, given number of weeks from start date
Declaration
Swift
func getDate(weeks: Int) -> Date?Parameters
weeksNumber of weeks from start date
Return Value
First day of week
-
Get week index from start date, given date
Declaration
Swift
func getWeekIndex(date: Date) -> IntParameters
dateDate
Return Value
Number of weeks from start date
-
Get date, given index from start date
Declaration
Swift
func getDate(index: Int) -> CalendarDate?Parameters
indexNumber of days from start date
Return Value
Number of days from start date
-
Get index from start date, given date
Declaration
Swift
func getIndex(date: Date) -> IntParameters
dateDate
Return Value
Date
-
Get if month is even number of month from today
Declaration
Swift
func isEvenNumberOfMonth(date: Date) -> BoolParameters
dateDate
Return Value
True is even number of month from today
-
Return is date is today
Declaration
Swift
func isToday(date: Date) -> BoolParameters
dateDate
Return Value
True if date is today
CalendarDates Class Reference