So far it was:
let string = "my example string"
if count(string) >= 3 { ... }
But now I get an error:
count
is unavailable: access thecount
property on the collection. TypeString
doesn't conform to protocolCollectionType
Oh, it is simple:
string.characters.count
It should be like that
let string = "my example string"
let length = string.characters.count
Because in Swift 2.0 Apple changed global functions to protocol extensions.