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