These packages are available as a package collection, usable in Xcode or SwiftPM.
The best control to record shortcuts on macOS, written in ObjC with Swift in mind
1 package.