A very simple String extension for trimming strings, written in Swift, just for fun. Feel free to use this.
- Import
String+Trim.swiftto your project. - Whenever you’re working with
Stringssimply call.trim()
example:
println(“ Hello, world “.trim()) // “Hello, world” Website: pedrovieira.me
Twitter: @w1tch_