How can I remove last character from String variable using Swift? Can\'t find it in documentation.
Here is full example:
var expression = \"45+22\" e
The dropLast() function removes the last element of the string.
dropLast()
var expression = "45+22" expression = expression.dropLast()