You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
464 B

// Copyright © 2015 Abhishek Banthia
import Cocoa
extension String {
func filteredName() -> String {
var filteredAddress = self
let commaSeperatedComponents = components(separatedBy: ",")
if let first = commaSeperatedComponents.first {
filteredAddress = first
}
return filteredAddress
}
func localized() -> String {
return NSLocalizedString(self, comment: "Title for \(self)")
}
}