If I use decimal pad for input of numbers the decimal changes depending of country and region format. May be as a point \".\" or as a comma \",\" And I do not have contr
Identify is local country uses comma for decimal point
var isUsesCommaForDecimal : Bool { let nf = NumberFormatter() nf.locale = Locale.current let numberLocalized = nf.number(from: "23,34") if numberLocalized != nil { return true } else { return false } }