2

I want to set notification to repeat every week. How to do that, I don't see NSCalendarUnit.Week, only see NSCalendarUnit.Day, and I can't set NSCalendarUnit.Day * 7. So, how to do this? Does notification.repeatInterval = NSCalendarUnit.WeekOfMonth work?

notification.repeatInterval = NSCalendarUnit.
Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Twitter khuong291
  • 11,328
  • 15
  • 80
  • 116

1 Answers1

2

How about WeekOfMonth or WeekOfYear? They have two different implementations so be sure to read the documentation around both. Or look at this post.

Community
  • 1
  • 1
SushiGrass Jacob
  • 19,425
  • 1
  • 25
  • 39