CalendarDisabledDates
public struct CalendarDisabledDates
This defines the dates to be displayed as disabled in the CalendarView.
User cannot choose disabled days in the calendar.
-
All dates before and include the
beforeDateare considered disabled.Declaration
Swift
public var beforeDate: Date? -
All dates after and including the
afterDateare considered disabled.Declaration
Swift
public var afterDate: Date? -
All dates with the specific weekdays are considered disabled.
The weekday units are the numbers 1 through 7 (where 1 is Sunday).
Declaration
Swift
public var weekdays: [Int] -
The other random disabled dates.
Declaration
Swift
public var others: [Date] -
The default initializer.
- beforeDate: All dates before and include the
beforeDateare considered disabled. - afterDate: All dates after and including the
afterDateare considered disabled. - weekdays: All dates with the specific weekdays are considered disabled. The weekday units are the numbers 1 through 7 (where 1 is Sunday).
- others: The other random disabled dates.
Declaration
Swift
public init(beforeDate: Date? = nil, afterDate: Date? = nil, weekdays: [Int] = [], others: [Date] = []) - beforeDate: All dates before and include the
-
Check whether the date is disabled or not.
Declaration
Swift
public func isDisabled(_ date: Date) -> BoolParameters
datethe date to be checked.