open class FUICalendarFloorplanViewController : FUIBaseDrawingViewController<FUICalendarFloorplanView>

The FUICalendarFloorplanViewController provides a controller with a built in tableView and an FUIcalendarView intialized in monthView style. Instantiate a controller of type FUICalendarFloorplanViewController and set the calendarView and tableView delegates to access the methods.

 // Example showing usage of FUICalendarFloorplanViewController

class CalendarFloorplanTest: FUICalendarFloorplanViewController, FUICalendarViewDelegate, UITableViewDataSource , UITableViewDelegate {

    override func viewDidLoad() {

        self.calendarView.delegate = self
        self.tableView.delegate = self

        self.tableView.estimatedRowHeight = 60
        #if swift(>=4.2)
            self.tableView.rowHeight = UITableView.automaticDimension
            self.tableView.rowHeight = UITableViewAutomaticDimension

        tableView.register(FUITimelineCell.self, forCellReuseIdentifier: FUITimelineCell.reuseIdentifier)

    //MARK: UITableViewDataSource Methods
    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 2

    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {

        let cell = self.tableView.dequeueReusableCell(withIdentifier: FUITimelineCell.reuseIdentifier, for: indexPath) as! FUITimelineCell
        cell.headlineLabel.text =  "Event Details"
        return cell

    // MARK: FUICalendarViewDelegate Methods
    func  calendarView(_ calendarView: FUICalendarView, didChangeTitleTo title: String) {
        self.navigationItem.title = title

    func  calendarView(_ calendarView: FUICalendarView,  didChangeVisibleDatesTo visibleDates: FUIVisibleDates) {

    func calendarView(_ calendarView: FUICalendarView, didSelectDate date:Date, cell: FUICalendarItemCollectionViewCell) {


    func calendarView(_ calendarView: FUICalendarView, didDeselectDate date:Date, cell: FUICalendarItemCollectionViewCell) {


    func calendar(_ calendarView: FUICalendarView, willDisplay cell: FUICalendarItemCollectionViewCell, forItemAt date: Date, indexPath: IndexPath) {


  • The UITableView of FUICalendarFloorplanViewController. Use this property to set the tableview delegate and datasource.



    public var tableView: UITableView { get }
  • The FUICalendarView of FUICalendarFloorplanViewController. Use this property to set the FUICalendarViewDelegate.



    public var calendarView: FUICalendarView { get }