Files
casa/Casa/CasaPasteboard.swift
2026-01-10 11:59:49 -06:00

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
}
}