When overriding readFromPasteboard and writeToPasteboard in an NSTextView, I need to check if the pasteboard's type is plain text.
NSTextView seems to be using NSPasteboard.PasteboardType(rawValue:"NSStringPboardType") as the plain text pasteboard type. The symbol NSStringPboardType is not available in Swift 4.2. Xcode 10 suggests NSPasteboard.PasteboardType.string instead, but it's not equal to NSStringPboardType, and has a raw value of 'public.utf8-plain-text'.
Is there a way to reference NSStringPboardType in Swift without using a hard coded string?