Remove All Items From a Dictionary

// Create a Dictionary with two elements
var myDictionary = ["first_name": "Sergey", "last_name": "Kargopolov"]

// Remove all elements from a Dictionary
myDictionary.removeAll()

// Print dictionary to preview
print(myDictionary)

[raw_html_snippet id=”cookbookpagecoursesheader”]

Unit Testing Swift Mobile App

Apply Test-Driven Development(TDD) process to iOS mobile app development in Swift Preview this video course.