When calling:
private func scheduleSurveyAvailableNotification(id id: Int, surveyDate: NSDate)instead of:
dates.enumerate().forEach { index, date in
scheduleSurveyAvailableNotification(id: index, surveyDate: date)
}you can do:
dates.enumerate().forEach(scheduleSurveyAvailableNotification)