FUICalendarFloorplanViewController

open class FUICalendarFloorplanViewController : UIViewController, FUICalendarInternalFloorplanDelegate

The FUICalendar style to be displayed can be specified in the controller init method. All calendar styles are supported except expandable. In the case of rangeSelectionView and datesSelectionView, no table view is displayed and the calendarView occupies the full screen. In the case of month or week styles, if the allowsStyleSwitching flag is enabled, clicking the right bar button in the navigation bar allows the calendar to switch between month and week styles.

Calendar View

Calendar View

  • The FUICalendarView of FUICalendarFloorplanViewController. Use this property to set the FUICalendarViewDelegate.

    Declaration

    Swift

    public private(set) var calendarView: FUICalendarView! { get }
  • The UITableView of FUICalendarFloorplanViewController. Use this property to set the tableview delegate and datasource.

    Declaration

    Swift

    public private(set) var tableView: UITableView { get }
  • When this flag is enabled, clicking the right bar button in the navigation bar allows the calendar to switch between month and week styles. This flag is valid only for the month and week styles. The default is false.

    Declaration

    Swift

    public var allowsStyleSwitching: Bool
  • Use this property to show or hide the toolbar. The default is true.

    Declaration

    Swift

    public var displaysToolbar: Bool
  • The delegate is invoked upon completion or cancellation of user selection

    Declaration

    Swift

    public weak var calendarFloorplanDelegate: FUICalendarFloorplanDelegate?
  • Initialize the FUICalendarFloorplanViewController. The user can provide specific values for the FUICalendarView parameters here. If no values are provided, the calendar is initialized with default values as follows: The ‘calendarStyle’ is .monthView. ‘weekStartDay’ is .localeSpecific. ‘startDate’, ‘endDate’ and ‘displayDateAtStartup’ values are nil by default, in which case the calendar data is a 2-year period from the current year to next year and the displayDateAtStartup is set to the current date.

    Declaration

    Swift

    public init(calendarStyle: FUICalendarStyle = .month, weekStartDay: FUIWeekStartDay = .localeSpecific, startDate: Date? = nil, endDate: Date? = nil, displayDateAtStartup: Date? = nil, allowsStyleSwitching: Bool = false)