mirror of
https://github.com/openclaw/casa.git
synced 2026-07-01 20:54:20 -04:00
12 lines
289 B
Swift
12 lines
289 B
Swift
import UIKit
|
|
import UniformTypeIdentifiers
|
|
|
|
enum CasaPasteboard {
|
|
@MainActor
|
|
static func copy(_ value: String) {
|
|
let item = [UTType.plainText.identifier: value]
|
|
UIPasteboard.general.setItems([item], options: [:])
|
|
UIPasteboard.general.string = value
|
|
}
|
|
}
|