I am planning to save users' preference setting in Userdefalut, the problem is the user's preference setting will be edited in View Controller A, and View Controller B and View Controller C need to read it. I understand that I can make an instance like
var userDefaults = UserDefaults.standard
My plan is put it in AppDelegate, so how can I access it from Other View Controller if it is in AppDelegate.
Thanks in advance.