string
The string value of the first pasteboard item.
Declaration
var string: String? { get set }Discussion
The value stored in this property is an NSString object. The associated array of representation types is typeListString, which includes type kUTTypeUTF8PlainText. Setting this property replaces all current items in the pasteboard with the new item. If the first item has no value of the indicated type, nil is returned.