title: How can i schedule local notification for Mon,Tue and Fri at 5PM in ios swift?
body: <p>In swift 3, how can I schedule local notification for a particular day like Mon, Tue and Sat for a specific time like 5 PM?</p>
  
  <p>Currently, I have schedule local notification for a time which I have set.</p>
  
  <pre><code> let myOwnDate = Date()
   dateFormatter.dateFormat = "dd/MM/yyyy"
   let currentDate = dateFormatter.string(from: myOwnDate)
   let dateTime = currentDate + " " + self.btnTime.titleLabel!.text!
   dateFormatter.dateFormat = "dd/MM/yyyy hh:mm a"
   let date = dateFormatter.date(from: dateTime)!
  
   localNotification.fireDate = date
   localNotification.repeatInterval = NSCalendar.Unit.weekday
   localNotification.alertBody = "Your alarm is ringing!"
   let app = UIApplication.shared
              app.scheduleLocalNotification(localNotification)
  </code></pre>
  
  <p>But the problem is that this notification fires for all days.</p>