title: Swift label isn't changing
body: <p>I want change a label when the textfield contains one of the words in the two arrays, when I start the app, if I insert a word of the first array works. Then I insert a word of the second array and also this works, but if I insert again one word of the first array, the label don't change.</p>
  
  <pre><code>var one = ["word1", "word2", "word3"]
  var two = ["word4", "word5", "word6"]
  var count1 = 0
  var count2 = 0
  let s = textField.text?.lowercased()
  
      for item in one{
          if (s?.contains(item))!{
              count1+=1
          }
      }
      if count1 &gt; 0{
  
          label.text = "First array"
  
      }
  for item in two{
          if (s?.contains(item))!{
              count2+=1
          }
      }
      if count2 &gt; 0{
  
          label.text = "Second array"
  
      }
  </code></pre>