by @saigowthamr

How to remove first character from a string in Swift

Home » swift » How to remove first character from a string in Swift

Swift has built-in removeFirst() method by using that we can remove the first character from a string.

Example:

var myString = "Hello, World"

myString.removeFirst()

print(myString)

Output:

ello, World