How to Calculate a Date in Swift 3 Using Calendar Components - PeterWitham.com
As a follow-up to my article on calculating a date using Swift. A few readers and Twitter followers pointed out (thank you to all of you), you can also do the same thing using another popular method that involves calendar components. So let's do it again using Calendar Components and Swift 3.
How to Calculate a Date in Swift 3 Using Calendar Components
This tutorial shows how you can use calender components to calculate a date and time using Swift 3. Using just a few lines of code you can take advantage of the OS features to calculate the correct date for you.