I\'m new in the Swift world.
How can I converting a String with a comma to a String with a decimal?
The code work\'s fine with a dot (.)
The problem
var price = "2,25" price = price.replacingOccurrences(of: ",", with: ".") var priceFloat = (price as NSString).floatValue