title: How to edit or update the text inside the Text Field in Swift?
body: <p><a href="https://i.stack.imgur.com/TtXHg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TtXHg.png" alt="Screenshot"></a></p>
  
  <p>Here is the .gif of this screen : <a href="http://g.recordit.co/73jHPP5LE6.gif" rel="nofollow noreferrer">http://g.recordit.co/73jHPP5LE6.gif</a></p>
  
  <p>As you can see in the picture above there is an UILabel Rp <code>"25.000.000"</code> and a text inside the TextField <code>"25000000"</code> (after the user fill the text field). Both of them is actually a currency.</p>
  
  <p>I want to edit the text inside the Textfield from <code>"25000000"</code> to <code>"25.000.000"</code>, I can give the dot (.) separator using a function, let say <code>formattedWithSeparator()</code> that can be used for an Int like this:</p>
  
  <pre><code>25000.formattedWithSeparator()
  </code></pre>
  
  <p>But I don't know where do I have to implement that function If I want to edit / update the text (not placeholder) inside the TextField live when the user update / write in the text field.</p>
  
  <p>What should I do?</p>