So I\'m making a to-do list app, and I want the user to be notified when all of the shopping items have been deleted. I have a dictionary that contains the String:store as a
You can just use isEmpty
isEmpty
var dict: Dictionary = [:] var result = dict.isEmpty
result will be true
result
true