When using the
String.compare method in Swift, rather than using
NSCaseInsensitiveSearch-type values for the options argument, use the
NSStringCompareOptions enum values instead. For example:
myString.compare(searchString, options: NSStringCompareOptions.CaseInsensitiveSearch, range: a...b, locale: nil)
All the best!
Kevin McNeish
Author of Learn to Code in Swift:
https://itunes.apple.com/us/book/learn-to-code-in-swift/id942956811?mt=11