AXSwift
Swift wrapper for accessibility clients
Install / Use
/learn @tmandry/AXSwiftREADME
AXSwift
AXSwift is a Swift wrapper for macOS's C-based accessibility client APIs. Working with these APIs is error-prone and a huge pain, so AXSwift makes everything easier:
- Modern API that's 100% Swift
- Explicit error handling
- Complete coverage of the underlying C API
- Better documentation than Apple's, which is pretty poor
This framework is intended as a basic wrapper, and doesn't keep any state or do any "magic". That's up to you!
Using AXSwift
SPM
In your Package.swift:
.package(url: "https://github.com/tmandry/AXSwift", from: "0.3.0"),
Carthage
In your Cartfile:
github "tmandry/AXSwift" ~> 0.3
CocoaPods
In your Podfile:
pod 'AXSwift', '~> 0.3'
See the source of AXSwiftExample and AXSwiftObserverExample for an example of the API.
Related Projects
Swindler, a framework for building macOS window managers in Swift, is built on top of AXSwift.
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
