How to save data on an app using UserDefaults with Swift 4 and Xcode 9

Published --