title: Add a dot instead of a comma in numberPad with Swift
body: <p>I search how to replace a comma separator by a dot in numberPad in UITextField with Swift 5 please.</p>
  
  <p>I tried this but it didn't work.</p>
  
  <pre><code>let commaValue = textField.text!
  let decimalValue = Double(commaValue.replacingOccurrences(of: ",", with: "."))
  </code></pre>