I have this code in Swift:
guard let user = username else{ return nil }
But I get the following errors:
Nil is incompatible with return type String
Do any of you know why and how I return zero in this case?
I will be very grateful for your help.
source share