Q: How do I get the dates for a whole week? I am trying to get the dates for the whole week. I can currently get the current date, but I want to add 6 days to that so I can get a list of the whole week. How would I do that? Any help is appreciated!
let now = NSDate()
override func viewDidLoad() {
    super.viewDidLoad()
  print("Now \(now)") //prints current date
}


A: A quick and easy way of doing it:
if let calendar = NSCalendar(calendarIdentifier: NSCalendarIdentifierGregorian) {
  var thisWeek = [NSDate]()
  for i in 0...6 {
    if let nextDay = calendar.dateByAddingUnit(NSCalendarUnit.Day , value: i, toDate: NSDate(), options: .MatchStrictly) {
      thisWeek.append(nextDay)
    }
  }
}

