Does swift have a trim method on String? For example:

let result = " abc ".trim()
// result == "abc"

16 Answers
16

Leave a Reply

Your email address will not be published. Required fields are marked *