You can use a Suite name
let user = UserDefaults(suiteName:"User")
let location = UserDefaults(suiteName:"Location")
solved Clearing a subset of UserDefaults in Swift [closed]
You can use a Suite name
let user = UserDefaults(suiteName:"User")
let location = UserDefaults(suiteName:"Location")
solved Clearing a subset of UserDefaults in Swift [closed]