FUICalendarDisabledDates

public class FUICalendarDisabledDates

This class defines the dates to be displayed as disabled in the FUICalendarView.

User cannot choose disabled days in the calendar.

  • All dates before and include the beforeDate are considered disabled.

    Declaration

    Swift

    public var beforeDate: Date?
  • All dates after and including the afterDate are 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.

    Declaration

    Swift

    public init(beforeDate: Date? = nil, afterDate: Date? = nil, weekdays: [Int] = [], others: [Date] = [])

    Parameters

    beforeDate

  • Chcek if the date is disabled or not.

    Declaration

    Swift

    public func isDisabled(_ date: Date) -> Bool

    Parameters

    date

    the date to be checked.