Skip to content

TrustMe 0.2.0

Choose a tag to compare

@piercefreeman piercefreeman released this 15 Oct 18:33
· 4 commits to main since this release
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