title: Finding new line character in a String in "Swift 3"
body: <p>In my app I am receiving some incoming data from a web service. In that data some wrong values can also be received like new line characters. I want to find in response string that if it contains a new line character or not. </p>
  
  <p><strong>Before Swift 3</strong> I was able to do it like this </p>
  
  <pre><code>string.rangeOfString("\n")) == nil)
  </code></pre>
  
  <p>But in <strong>Swift 3</strong> this methods is no longer available. However <code>substring</code> method is available which does with the help of <code>Range</code>. </p>
  
  <p>I want to detect if my string contains <code>"\n"</code> how this would be accomplished using this method in <strong>Swift 3</strong>.</p>