Is it possible to get an array of Date for each day of a given Month and Year from Calendar components (Swift 3)
Currently I just find a way to get a count of days but nothing more.
The purpose is to develop my custom calendar but I get stuck to this phase...
The extension I'm trying to write will look like this:
extension Date
{
func getAllDays() -> [Date]
}
Or a method like that:
func getAllDays(month: Int, year: Int) -> [Date]