Add iOS clipboard support

This commit is contained in:
2025-06-29 12:58:08 -04:00
parent dd622c59e2
commit bed23e987d
7 changed files with 7 additions and 7 deletions
+16
View File
@@ -0,0 +1,16 @@
//go:build (android && !termux) || ios
package core
import (
"golang.design/x/clipboard"
)
// copyString copies a string to the clipboard.
func copyString(continuous bool, copySubject string) error {
clipboard.Write(clipboard.FmtText, []byte(copySubject))
if !continuous {
LaunchClipClearProcess(copySubject)
}
return nil
}