         segmentedControl.selectedSegmentIndex = 1
         
         stackView.addArrangedSubview(datePicker)
-        updateDatePicker()
         datePicker.addTarget(self, action: #selector(dateChanged), for: .valueChanged)
         
         stackView.addArrangedSubview(removeDateBorder)


        updateColors()
        updateCapabilities()
        updateDate()
    }
    
    func updateColors() {


import UIKit

public protocol DateChooserDelegate: class {
    func dateChanged(to date: Date?)
    func dateChooserSaved()
}

@IBDesignable open class DateChooser: UIView {
    
    // MARK: - IB Inspectable properties
