Is there a way to check strings for nil and \"\" in Swift? In Rails, I can use blank() to check.
nil
\"\"
blank()
I currently have this, but i
Swift 3 solution Use the optional unwrapped value and check against the boolean.
if (string?.isempty == true) { // Perform action }