title: swift 3 removing bulk of text from textFiled
body: <p>I'm working for mobile application will send pdf for selected contact, so the user will found add contact button to open table view that have all contact list. after that the user will click on done button.there is another view that have textFiled to display the contacts that user select. I need if the user start to remove name from textFiled by backspace,<a href="https://i.stack.imgur.com/SLUWH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SLUWH.png" alt="enter image description here"></a></p>
  
  <p>to be removed the all name and remove also the id from array that will send the id's to server.
  my code is </p>
  
  <pre><code>let idArray = ["1","2","3","4"]
  let valueArray = ["Ahmad","ali","jean","sara"]
  let StringVar = ""
  
  //*Here I send the array to string to append "," to be showed in textFiled*
  for item in valueArray {
              print("Found \(item)")
              StringVar = StringVar + item + ","
          }
  
  textFiled?.text = StringVar
  </code></pre>
  
  <p>any help please ??</p>