title: Search string for multiple substrings in iOS Swift
body: <p>I am working with a string of ingredients (salt, water, flour, sugar) for example, and want to search this string to see if specific items are on the list (salt, flour)</p>
  
  <p>This is the code so far</p>
  
  <pre><code>let ingredientList = (JSONDictionary as NSDictionary)["nf_ingredient_statement"] as! String
  
  if ingredientList.lowercaseString.rangeOfString("salt") != nil {
      print("Salt Found!")
  }
  </code></pre>
  
  <p>What would be the best way to implement a search for multiple substrings without repeating if statements?  </p>
  
  <p>The actual project will search for a dozen substrings, and 12 if statements is a pretty awkward solution.</p>