Problem: I am organizing objects into groups (weeks) that are classified by their date property to the most recent Monday that has past at 12:00. Given an NSDate, how can I find the most recent Monday at 12:00AM in swift?
Tried: I tried making a for loop and going back until the nearest Monday and then make a new NSDate object and put the time to 12:00AM but for whatever reason I cannot get it to work in swift.
Thanks in advance!