AXSwift

Version Carthage compatible

AXSwift 是 macOS 基于 C 的辅助功能客户端 API 的 Swift 封装器。使用这些 API 容易出错且非常痛苦,因此 AXSwift 让一切变得更轻松

此框架旨在作为一个基本的封装器,不保留任何状态,也不进行任何“魔法”。这取决于您!

使用 AXSwift

SPM

在您的 Package.swift 中

.package(url: "https://github.com/tmandry/AXSwift", from: "0.3.0"),

Carthage

在您的 Cartfile 中

github "tmandry/AXSwift" ~> 0.3

CocoaPods

在您的 Podfile 中

pod 'AXSwift', '~> 0.3'

请参阅 AXSwiftExampleAXSwiftObserverExample 的源代码,以查看 API 的示例。

相关项目

Swindler,一个用于用 Swift 构建 macOS 窗口管理器的框架,是基于 AXSwift 构建的。