Declaration:
let listArray = [\"kashif\"] let word = \"kashif\"
then this
contains(listArray, word)
Ret
For checking if a string exists in a array (case insensitively), please use
listArray.localizedCaseInsensitiveContainsString(word)
where listArray is the name of array and word is your searched text
This code works in Swift 2.2