How to convert a string to an integer?(Swift 3)
1 min readApr 30, 2018
If you have an integer value as a string and you wanted to convert it in integer just do the same as below.
String To Int
let yourStr1 = “777”let yourInt1 = Int(yourStr1)
If you have an string value as an Int and you wanted to convert it in String just do the same as below.
Int To String
let yourIntValue :Int = 777let yourStrValue :String = String(yourIntValue)
Click Here:- How to convert Float to Int and Int to Float