NSAttributedString
extension NSAttributedString
-
Returns a new mutable string with characters from a given character set removed.
See http://panupan.com/2012/06/04/trim-leading-and-trailing-whitespaces-from-nsmutableattributedstring/
Declaration
Swift
public func trimmingCharacters(in set: CharacterSet) -> NSAttributedString
Parameters
charSet
The character set with which to remove characters.
Return Value
A new string with the matching characters removed.