How can I expand a path String with a tilde in Swift? I have a string like \"~/Desktop\" and I\'d like to use this path with the NSFileManager methods,
\"~/Desktop\"
NSFileManager
Swift 4 Extension
public extension String { public var expandingTildeInPath: String { return NSString(string: self).expandingTildeInPath } }