In Objective C, one could do the following to check for strings:
if ([myString isEqualToString:@\"\"]) { NSLog(@\"m
A concise way to check if the string is nil or empty would be:
var myString: String? = nil if (myString ?? "").isEmpty { print("String is nil or empty") }