MatthewYork / DateTools

Dates and times made easy in iOS
MIT License
7.22k stars 952 forks source link

'dateComponents' is inaccessible due to 'internal' protection level #295

Open LilMoke opened 4 years ago

LilMoke commented 4 years ago

Hello,

I am receiving the message: 'dateComponents' is inaccessible due to 'internal' protection level

on the following line:

let datePeriod = TimePeriod(beginning: startDate!, chunk: TimeChunk.dateComponents(minutes: duration))

I understand why, but how can I accomplish creating a TimeChunk from the minutes?

maniramezan commented 4 years ago
LilMoke commented 4 years ago

Ahhhh yes!! I see, thnank you.