Check if a given date is the closest to the current date and time compared to an array of dates – Ios swift
I have seen questions like these, but from like 6 years ago and do not directly answer the question in my opinion. I have an array of 'events' which follow the Model of: struct Event: Identifiable{ var id = UUID().uuidString…