For SWIFT 3 you can use a simple function
func find(objecToFind: String?) -> Int? {
for i in 0...arrayName.count {
if arrayName[i] == objectToFind {
return i
}
}
return nil
}
This will give the number position, so you can use like
arrayName.remove(at: (find(objecToFind))!)
Hope to be useful