SyntaxFix
Write A Post
Hire A Developer
Questions
Swift 3.0 very simple implementation would be:
func dateByAddingDays(inDays: Int) -> Date { let today = Date() return Calendar.current.date(byAdding: .day, value: inDays, to: today)! }