SyntaxFix
Write A Post
Hire A Developer
Questions
To do the nil check and length simultaneously Swift 2.0 and iOS 9 onwards you could use
if(yourString?.characters.count > 0){}