Skip to content

FeedbackKit: macOS support - #15

Merged
artifact-agent merged 1 commit into
mainfrom
macos-feedbackkit
Dec 1, 2026
Merged

artifact-agent merged 1 commit into
mainfrom
macos-feedbackkit

Conversation

@artifact-agent

Copy link
Copy Markdown
Contributor

FeedbackKit gains macOS: the same sheet, relay client and sign-in, with AppKit capture and a window of its own.

Refs arfct/alchemy#199

Changes

  • Capture on macOS draws the window's frame view (title bar included) with bitmapImageRepForCachingDisplay(in:) and cacheDisplay(in:to:), so no screen-recording permission. Feedback.present() takes the key window, else the main window, else the frontmost visible one; Feedback.present(capturing:) takes a given window (for a menu-bar panel that isn't key).
  • The sheet opens in its own window, centred on the captured window's screen. Its close button asks before discarding a draft. The tools sit in the middle of its toolbar and Send at the right. Closing makes the captured window key again. The window's identifier is Feedback.windowIdentifier.
  • UI/Platform.swift holds the few UIKit/AppKit differences (image type, insets, colours). UIKit capture, the screenshot trigger, touch handling and keyboard tracking stay behind #if os(iOS); CanvasTouches has a DragGesture version for the Mac.
  • meta.platform is macOS there and meta.device is hw.model (e.g. Mac16,10) rather than arm64. New test: readsTheMacsModelNotItsArchitecture.
  • Feedback.triggers does nothing on macOS (the system doesn't tell apps about screenshots).
  • Both Package.swift files: comments only (macOS 26 was already declared); they stay in step.
  • apple/README.md: an "On macOS" section, API table rows, meta.

Verified

  • swift test in apple/FeedbackKit: 48 tests in 15 suites pass.
  • xcodebuild -scheme FeedbackKit for generic/platform=iOS and generic/platform=macOS: both succeed. FeedbackDemo builds for the iOS simulator.
  • In arfct/alchemy (feedback-macos, this branch's sources copied into Quicksilver for Mac): the Debug build opened the sheet over the panel and over Settings; I looked at both window captures. The sheet shows the screenshot, the tools and Send, and the Settings capture is sharp and legible. Quicksilver and Quicksilver Pro build in Debug and Release.

Not verified

  • Sending a report from the Mac: not tried, so as not to file a real issue. The relay path is the same code as on iOS.
  • Drawing, regions, comments and sign-in on the Mac were not exercised by hand; only opening the sheet.
  • cacheDisplay(in:to:) doesn't draw Liquid Glass, vibrancy, Metal or video. A glass panel comes out as a blurred grey shape, and transparent parts of a borderless window come out transparent (black on the sheet).
  • The iOS sheet was not run on a device or simulator in this change; iOS was build-checked only. The iOS code paths were moved behind #if os(iOS), not changed.

After merge

  • Copy apple/FeedbackKit into arfct/alchemy again and point its README at the merge commit (alchemy's feedback-macos currently points at this branch's commit).

The sheet, relay client and sign-in are shared. On macOS the key window
(or a given one) is captured with cacheDisplay(in:to:), so no
screen-recording permission, and the sheet opens in a window of its own.
UIKit capture, screenshot trigger, touches and keyboard tracking stay
behind os(iOS). meta.platform is macOS and meta.device is hw.model.

Refs arfct/alchemy#199

Co-Authored-By: Geist <agent@artifact.com>
@artifact-agent
artifact-agent merged commit 2e75b6b into main Dec 1, 2026
2 checks passed
@artifact-agent
artifact-agent deleted the macos-feedbackkit branch December 1, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant