07-18-2023, 11:30 PM
**Swift 4**:
let x:Int = 45
let str:String = String(describing: x)
[Developer.Apple.com > String > init(describing:)][2]
> The String(describing:) initializer is the preferred way to convert an instance of any type to a string.
[Custom String Convertible][3]
[![enter image description here][1]][1]
[1]:
[2]:
let x:Int = 45
let str:String = String(describing: x)
[Developer.Apple.com > String > init(describing:)][2]
> The String(describing:) initializer is the preferred way to convert an instance of any type to a string.
[Custom String Convertible][3]
[![enter image description here][1]][1]
[1]:
[2]:
[To see links please register here]
[3]:[To see links please register here]