I\'m creating a simple calculator app and currently struggling at deleting the last character when a my button is tapped. I\'m using the dropLast() method but I
dropLast()
Remove last char from string/text in swift
var str1 = "123456789" str1.removeLast() print(str1)
output:
12345678