Sugar for clipboard
This library provides easy-to-use Swift utilities for interacting with the clipboard on macOS.
- macOS 10.15+
- Swift 5.3+
- Manual: open
.xcodeproj
- SPM:
.package(url: "https://github.com/eonist/ClipboardSugar.git", .branch("master"))
let hasString = ClipboardAsserter.hasString()
Swift.print("hasString: \(hasString)")
let str = ClipboardParser.getString()
Swift.print("str: \(str)")
ClipboardModifier.setString(string: "Something")
- Add github tests
- Look for more modern OSS code
- Ask copilot for improvments