Skip to content

Instantly share code, notes, and snippets.

@marlonjames71
Last active March 7, 2021 00:59
Show Gist options
  • Save marlonjames71/7ae9dcda6c28cd69565ee538134a98d4 to your computer and use it in GitHub Desktop.
Save marlonjames71/7ae9dcda6c28cd69565ee538134a98d4 to your computer and use it in GitHub Desktop.
String Extension - .anotherContains(_: )
extension String {
func anotherContains(_ stringToFind: String) -> Bool {
return self.range(of: stringToFind, options: .caseInsensitive) != nil
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment