     // MARK: - Internal properties
     
     let title = UILabel()
+    let segmentedContainer = UIView()
     let segmentedControl = UISegmentedControl(items: [NSLocalizedString("Date", comment: "Title for date in segmented control"), NSLocalizedString("Time", comment: "Title for time in segmented control")])
     let datePicker = UIDatePicker()
     let removeDateBorder = UIView()

        setToCurrentButton.isHidden = !includeCurrent
        let dateAndTimeSeparate = computedCapabilities.contains(.dateAndTimeSeparate)
        segmentedControl.isHidden = !dateAndTimeSeparate
        let currentButtonTitle: String
        if dateAndTimeSeparate {
            datePicker.datePickerMode = .time

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