I find checking nil
before unwrapping is lengthy, is there a shorter way? I'm new to Swift, thanks
func loadSettings(defaults: UserDefaults) {
if defaults.string(forKey: "driverId") != nil {
driverId = defaults.string(forKey: "driverId")!
}
}