This is a screen capture library developed in Rust + Swift, implemented using the ScreenCaptureKit framework. Supports macOS 13.0+.
Warning: this library is for simple functional verification, and I'm not a Swift developer, so I'm not sure if the code implementation makes sense.
Refer to the sample code in src/main.
Execute cargo run
to see the sample code in action.
chinedufn/swift-bridge: swift-bridge facilitates Rust and Swift interop.