I have created UserDefaults with suite,
self.moviesWatchedUserDefaults = UserDefaults(suiteName: "com.apple.tv.2020")
And storing the info in the plist like
self.moviesWatchedUserDefaults.set(data, forKey: key).
Now, while retrieving, I wanted to retrieve all keys & values. For which I am using,
var watchedList = self.moviesWatchedUserDefaults?.dictionaryRepresentation()
But the list which is returned not only contains the items which I stored, but also other keys like NSLanguages
, AppleKeyboards
, AppleKeyboardsExpanded
, CarCapabilities
, etc.,
How to retrieve all the keys&values (only the ones which I stored) ?