Skip to content

Instantly share code, notes, and snippets.

@vicxruiz
Created May 1, 2019 15:39
Show Gist options
  • Save vicxruiz/51100a74bb879f32f9f76505a5c68857 to your computer and use it in GitHub Desktop.
Save vicxruiz/51100a74bb879f32f9f76505a5c68857 to your computer and use it in GitHub Desktop.
extension String {
func anotherContains(string: String) -> Bool {
if self.lowercased().range(of: string) != nil {
return true
} else if self.uppercased().range(of: string) != nil {
return true
}
else {
return false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment