swift int to string code example
Example 1: conert data to string swift
let str = String(decoding: data, as: UTF8.self)
Example 2: swift convert decimal to string
NSDecimalNumber(decimal: de).stringValue
Example 3: ios swift convert int to string
let x : Int = 42
var myString = String(x)