Fix full-screen sidebar corners - #111
Conversation
|
fwiw, I don't think this is the right approach -- removing the toolbar breaks a lot of useful behavior we get from SwiftUI and will result in a much jankier feel. what problem are you trying to solve? |
ba745d1 to
c4ded24
Compare
|
The issue was the tool bar insets where wrong and nothing fixed it Then I started noticing most Mac apps don't use it Implement it and did come across some janky feel before fully implementing the new menu system. But now it's working quite smoothly and consistently than ever before. Please try it and let me know |
| } | ||
|
|
||
| private func applyAppearance(_ appearance: AppAppearance) { | ||
| NSApplication.shared.appearance = appearance.appKitAppearance |
There was a problem hiding this comment.
This can be handled as a follow up but it should be possible to use @Environment(\.colorScheme) private var colorScheme and just directly grab the system color scheme when there's no user override, not need to bounce through AppKit.
ae6bb1f to
3e223f2
Compare

Summary
Root cause
On macOS 26, AppKit renders the sidebar and the full-screen titlebar glass in separate view and window hierarchies. Adjusting the main sidebar surface fixed the bottom corners, but the independently managed titlebar glass retained its rounded top corners. AppKit also recreates some of these glass layers during the full-screen transition.
User impact
The sidebar now reaches every full-screen edge with straight corners, while windowed mode keeps its native rounded corners.
Screenshot
Validation
xcodebuild -project Nativ.xcodeproj -scheme Nativ -configuration Debug -destination 'platform=macOS' CODE_SIGNING_ALLOWED=NO test -quiet