I have the following code:
let kmInput: Int = (addKmInput.text!.replacingOccurrences(of: ".", with: "") as NSString).integerValue
Can I additionally replace occurrences of commas? Or is the only way to solve it this way:
let kmInput: Int = (addKmInput.text!.replacingOccurrences(of: ".", with: "").replacingOccurrences(of: ",", with: "")