Does swift have a trim method on String? May 7, 2022 by IT Nursery Does swift have a trim method on String? For example: let result = " abc ".trim() // result == "abc" 16 Answers 16