title: Trigger notification weekly Swift 3
body: <p>I am trying to make a schedule, in which I need to remember all the weeks I have class such as Monday at certain time. The problem is that if I assign weekday = 1 (Sunday) when I print the variable triggerWeekly it tells me that weekday = 2, so by performing the tests I do not receive such notification. I need to know why this happens</p>
  
  <pre><code>let weekday = 1 //Sunday 19 Mar 
  let calendar = NSCalendar.current
  var date = DateComponents()
  date.weekday = weekday
  date.hour = 1
  date.minute = 5
  
  let ultimateDate = calendar.date(from: date)
  
  let triggerWeekly = Calendar.current.dateComponents([.weekday, .hour, .minute], from:
  ultimateDate!)
  
  print(triggerWeekly) // hour: 1 minute: 5 second: 0 weekday: 2 isLeapMonth: false 
  let trigger = UNCalendarNotificationTrigger(dateMatching: triggerWeekly, repeats: true)
  let identifier = "curso\(String(Index))"
  let request = UNNotificationRequest(identifier: identifier,
                                          content: content, trigger: trigger)
  </code></pre>