     }
     
     @IBAction func endDateEditing(_ sender: UITextField) {
-        startDateEditing = false
+        editingStartDate = false
         
         let (_, maxDate) = minMaxDate
         

    
    var editItem: Item?
    
    var startDateEditing = false
    
    var startDate: Date!
    var endDate: Date!

    }
    
    @IBAction func startDateEditing(_ sender: UITextField) {
        editingStartDate = true
        
        let (minDate, _) = minMaxDate
        
