         configureView()
         setupConstraints()
         
+    }
+    override func viewDidLayoutSubviews() {
+        super.viewDidLayoutSubviews()
+        
+        // Commit frames' updates
+        menuView.commitMenuViewUpdate()
+        calendarView.commitCalendarViewUpdate()
     }
 
     override func didReceiveMemoryWarning() {

    }
}


import MaterialControls
import SnapKit
import MaterialActionSheetController
import CVCalendar

class IqamaViewController: UIViewController {
    let prayTable = UITableView()
    let supportButton = MDButton()
    
    var menuView = CVCalendarMenuView()
    var calendarView = CVCalendarView()
    
    var selectedDay:DayView!

    override func viewDidLoad() {
        super.viewDidLoad()
