Skip to content

Releases

v0.3.0: Add a System Audio Recording permission (#5)

Choose a tag to compare

@piercefreeman piercefreeman released this 06 Nov 06:26
8415295
TrustMe covers Microphone and Screen Recording, but not System Audio
Recording, which a Core Audio process tap
(`AudioHardwareCreateProcessTap`) needs.

## Changes
- New `Permission.systemAudioRecording`, a drag-based permission in
`allDraggable`. It opens `Privacy_AudioCapture` (the System Audio
Recording Only list in Screen & System Audio Recording) and reads the
`AudioCapture` TCC service.
- Before the app has been added or asked, `TCCAccessPreflight` answers 2
("would prompt") for this service. This permission reads that as
`.notGranted`. It reports `.unknown` only when TCC can't be read at all,
using the new `TCC.isAvailable`.
- The demo bundle's Info.plist gets `NSAudioCaptureUsageDescription`,
and the README tells apps to add it too.

## Testing
- `swift test`: all 85 tests pass.
- `TrustMeDemo --print-status` on macOS 15.7 reports
`system-audio-recording notGranted`.

TrustMe 0.2.0

Choose a tag to compare

@piercefreeman piercefreeman released this 15 Oct 18:33
07972ea

System Settings no longer opens hidden under your onboarding window. When it opens underneath, TrustMe slides your window aside so the list is in view, and slides it back once you're done.

Highlights

  • SettingsDodge: moves a window out from over System Settings while the person grants a permission, and back afterwards. It reads the window server's stacking order, so it acts even when Settings isn't the frontmost app, and it never covers Settings when it steps aside.
  • Built into PermissionsWindow: the onboarding window steps aside on its own after Allow. No code changes needed.
  • Respects the person: a click on the window while it's aside, or moving it by hand, leaves it where they put it for the rest of that visit to Settings.
  • For your own onboarding window: SettingsDodge(window:flow:), start() and stop(). Open Settings panes with SettingsDodge.open(_:) so the dodge knows the trip is yours.

Under the hood

  • UI tests against real windows: the dodge, the drag band, its drag states and PermissionsWindow are now tested on screen in CI. A helper process stands in for System Settings, so the window lookup is checked against the real window server.

Install

Add Package Dependencies → https://github.com/piercefreeman/TrustMe, Up to Next Major Version from 0.2.0.

Full changelog: v0.1.0...v0.2.0

TrustMe 0.1.0

Choose a tag to compare

@piercefreeman piercefreeman released this 12 Oct 22:34

The first release of TrustMe: a better way for Mac apps to ask for permissions.

Instead of a stack of system alerts that send users hunting through System Settings, TrustMe shows one window listing what your app needs. Click Allow, and a glass band representing your app appears next to the right System Settings list. Drag it in and you're done.

Highlights

  • PermissionsWindow: a drop-in onboarding window built from the permissions you pass it, with live status for each, and an optional Skip.
  • Drag-to-authorize band: opens next to the System Settings window once it's open, follows it as it moves, and confirms when the permission is granted.
  • Building blocks for your own onboarding: PermissionsView, PermissionRow, PermissionButton and matching button styles.
  • Supported permissions: Accessibility, Screen Recording, Input Monitoring, Full Disk Access, App Management and Developer Tools by drag, plus Camera and Microphone via the system prompt.
  • Live status detection, including App Management and Developer Tools, which have no public check.
  • Relaunch handling for permissions that only apply after a restart, including a resume flag after macOS's "Quit & Reopen".
  • Glass UI using macOS 26's Liquid Glass, with a matching look on macOS 14–15.

Requirements

  • macOS 14 or later; Xcode 26 to build.
  • Distribute outside the Mac App Store, because status detection relies on a private TCC function.
  • Add NSCameraUsageDescription / NSMicrophoneUsageDescription to your Info.plist if you list Camera or Microphone.

Install

Add Package Dependencies → https://github.com/piercefreeman/TrustMe, Up to Next Major Version from 0.1.0.