naoty / Timepiece

Intuitive date handling in Swift
MIT License
2.63k stars 147 forks source link

iOS 7 compatibility #7

Closed mattijsf closed 9 years ago

mattijsf commented 9 years ago

I use this library on iOS 7. Everything works except the NSCalendar.dateByAddingUnit: method is unavailable on iOS 7. I implemented a NSCalendar.dateByAddingDuration: extension method to fallback to NSCalendar.dateByAddingComponents: when required, otherwise it will just use NSCalendar.dateByAddingUnit:

naoty commented 9 years ago

@mattijsf Thank you for great job!

naoty commented 9 years ago

@mattijsf I have released 0.2.2!