2020-12-30a few seconds read (About 60 words)How to make simple NSItemProvider in SwiftIssue #728 12345678910111213141516171819202122NSItemProvider(object: StringProvider(string: string))class StringProvider: NSObject, NSItemProviderWriting { let string: String init(string: String) { self.string = string super.init() } static var writableTypeIdentifiersForItemProvider: [String] { return [(kUTTypeData) as String] } func loadData( withTypeIdentifier typeIdentifier: String, forItemProviderCompletionHandler completionHandler: @escaping (Data?, Error?) -> Void ) -> Progress? { let data = string.data(using: .utf8) completionHandler(data, nil) return Progress(totalUnitCount: 100) }}#swift