Conversion error for rangeofcharacterfromset from swift 2.3 to swift 3.0
I am trying to convert my application from swift 2.3 to swift 3.0. I am facing the following issue.
I am trying to check whether a range of character set is found or not. Code works fine in swift 2.3 and when converting it to swift 3.0.
Can some one help me out with this issue.
Thanks in advance.
let string = String()
let characterSet = CharacterSet()
let stringSet : String = string as String
stringSet.rangeOfCharacter(from: characterSet.inverted, options: String.CompareOptions.caseInsensitive)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download
Email codedump link for Conversion error for rangeofcharacterfromset from swift 2.3 to swift 3.0