     // MARK: - Public properties
     
     open var chosenDate: Date?
+    public weak var delegate: DateChooserDelegate?
     
     
     // MARK: - Computed properties

    // MARK: - Internal functions
    
    func updateDatePicker() {
        let temp = 4
    }
    
    func dateChanged() {
        let temp = 3
        updateDate()
    }
    
    func removeDate() {
        let temp = 4
    }
    
    func setDateToCurrent() {
        let temp = 2
    }
    
    func saveChanges() {
        let temp = 3
    }
    
}

        constrainFullWidth(title, leading: DateChooser.innerMargin, trailing: DateChooser.innerMargin)
        stackView.addArrangedSubview(titleContainer)
        title.font = titleFont
        title.textAlignment = .center
        
        segmentedContainer.addSubview(segmentedControl)
        constrainFullWidth(segmentedControl, leading: DateChooser.innerMargin * 2, top: DateChooser.innerMargin, trailing: DateChooser.innerMargin * 2, bottom: DateChooser.innerMargin)
        stackView.addArrangedSubview(segmentedContainer)
