malcommac / SwiftDate

🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
MIT License
7.61k stars 767 forks source link

'subscript' in 'TimePeriodGroup' should be a public function #740

Closed semihunaldi closed 4 years ago

semihunaldi commented 4 years ago

'subscript' in 'TimePeriodGroup' is not public, which cannot be accessed outside the class. As a result, the following statement will be failed to compile.

let chain = TimePeriodChain()
chain.append(TimePeriod())
chain[0]  // Error: 'subscript' is inaccessible due to 'internal' protection level.

Any reason why it is internal?

malcommac commented 4 years ago

fixed in 6.2.0