Swift String ne conserve que les nombres
let result = string.trimmingCharacters(in: CharacterSet(charactersIn: "0123456789.").inverted)
Troubled Termite
let result = string.trimmingCharacters(in: CharacterSet(charactersIn: "0123456789.").inverted)