Skip to content

fix(desktop): keep notch panel frame under AppKit control - #18

Merged
Aforno merged 1 commit into
mainfrom
feature/fix/notch-panel-frame
Aug 29, 2026
Merged

fix(desktop): keep notch panel frame under AppKit control#18
Aforno merged 1 commit into
mainfrom
feature/fix/notch-panel-frame

Conversation

@Aforno

@Aforno Aforno commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Summary

SwiftUI was still able to influence the notch panel frame. NSHostingView was the window content view, so hosted layout animation could fight AppKit for bounds even with sizing options cleared on newer macOS.

Host the SwiftUI tree in a plain NotchPanelContentView that AppKit owns. The hosting view fills that view and autoresizes with it. Always clear sizingOptions (no macOS 13 availability gate) and drop hosting safe-area regions so SwiftUI layout animates inside a fixed panel frame.

Verification

  • swift test
  • swift test -c release
  • ./script/package_release.sh --adhoc
  • ./script/check_repository.sh
  • Packaged-app UI/runtime smoke test, when applicable

Covered by testPanelKeepsHostingViewBehindAppKitSizingBoundary. Smoke-test expand/collapse and compact-to-detail so the panel frame stays under AppKit while SwiftUI layout animates inside it.

Compatibility and risk

Desktop-only AppKit hosting change. No persistence, protocol, signing, or migration impact. sizingOptions = [] is no longer gated to macOS 13; confirm the deployment target still matches that API. Safe-area regions are cleared on the hosting view, so notch content no longer inherits window safe-area insets.

Screenshots

Not applicable.

- host SwiftUI in a fixed AppKit content view so layout animation cannot resize the panel
- drop hosting safe-area insets and always disable SwiftUI sizing options
Copilot AI lite review requested due to automatic review settings August 29, 2026 00:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Aforno
Aforno merged commit 94dbdcc into main Aug 29, 2026
2 checks passed
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.

2 participants