Swiftpack.co - meowmeowmeowcat/keypress as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by meowmeowmeowcat.
meowmeowmeowcat/keypress 0.0.3
Simulates key press in Swift.
⭐️ 0
🕓 2 days ago
.package(url: "https://github.com/meowmeowmeowcat/keypress.git", from: "0.0.3")

keypress

Simulates key press in Swift.

Usage

Pressing key A:

import keypress

keypress.press("A")

Pressing multiple keys:

keypress.press("Hello World")

Pressing hotkey Command+A:

keypress.hotkey("Command", "A")

Add to your project

Add the following line to the dependencies in Package.swift:

.package(url: "https://github.com/meowmeowmeowcat/keypress", from: "0.0.3"),

GitHub

link
Stars: 0
Last commit: 13 hours ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

0.0.3
2 days ago

Changelog:

  • Allow pressing multiple keys at the same time

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics