Check out example codes for "swift date plus1 day". It will help you in understanding the concepts better.

Code Example 1

var dayComponent    = DateComponents()
dayComponent.day    = 1
let theCalendar     = Calendar.current
let nextDate        = theCalendar.date(byAdding: dayComponent, to: Date())
print("nextDate : \(nextDate)")

Learn ReactJs, React Native from akashmittal.com