Created
September 4, 2015 14:45
-
-
Save odrobnik/f221d2a75fb23cf137fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension String | |
{ | |
func isSomeText() -> Bool | |
{ | |
if count(self)>0 | |
{ | |
return true | |
} | |
return false | |
} | |
} | |
var text: String? = "Bla" | |
if text?.isSomeText() == true | |
{ | |
NSLog("YES") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment