[ad_1]
Sure:
if let driverId = defaults.string(forKey: "driverId") {
// use driverId
}
[ad_2]
solved swift syntax, check for nil before unwrapping [duplicate]
[ad_1]
Sure:
if let driverId = defaults.string(forKey: "driverId") {
// use driverId
}
[ad_2]
solved swift syntax, check for nil before unwrapping [duplicate]