title: swift uitextview limit number of line breaks to two at the time
body: <p>I wonder if its possible to limit the number of line break that you can do in row?</p>
  
  <p>I have set a limit to the number of characters that can be inserted but users can still insert text like:</p>
  
  <pre><code>Sometext
  (line break) 
  (line break) 
  (line break) 
  (line break) 
  (line break) 
  (line break) 
  some more text...
  </code></pre>
  
  <p>Is it possible to only low two line breaks at the time? So that the above text ends up like:</p>
  
  <pre><code>Some text
  (line break)
  (line break)
  some more text...
  </code></pre>
  
  <p>Since I cant edit the text backend I must do it in the fronend.</p>
  
  <p>I want too clean out the text and limit the amount of line breaks in a row to two after the user has finished typing</p>