Skip to content

fix(button): restore circular button sizing and icon centering on macOS 26 - #1271

Merged
Kyle-Ye merged 1 commit into
mainfrom
bugfix/button
Nov 28, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
bugfix/button

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Nov 28, 2026

Copy link
Copy Markdown
Member

Summary

  • Restore a square bezel when AppKit reports no intrinsic width for a circular button on macOS 26 or later.
  • Use the button cell's title rectangle to keep the icon centered within the bezel.
  • Cover the Game2048 New Game button layout at small and regular control sizes before and after the host view resizes.

@Kyle-Ye
Kyle-Ye requested a review from Mx-Iris as a code owner November 28, 2026 13:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T13:17:21.111961Z 9a8691e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added area: layout Layout, geometry, safe area, alignment, stacks, or sizing. impact: visual-diff Visual mismatch, screenshot diff, or rendering fidelity issue. platform: macOS macOS-specific behavior or support. type: bug Something is not working correctly. labels Nov 28, 2026
@tuist

tuist Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 b9a286811

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 1m 3s b9a286811

Reported by Tuist, faster builds and reliable tests for Xcode, Gradle, Bazel, and more.

@codecov

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 35.07%. Comparing base (7d0df61) to head (9a8691e).

Files with missing lines Patch % Lines
...OpenSwiftUI/View/Control/Button/AppKitButton.swift 50.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1271      +/-   ##
==========================================
+ Coverage   31.71%   35.07%   +3.36%     
==========================================
  Files        1046     1046              
  Lines       85540    85552      +12     
==========================================
+ Hits        27126    30005    +2879     
+ Misses      58414    55547    -2867     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye
Kyle-Ye merged commit 0592025 into main Nov 28, 2026
7 checks passed
@Kyle-Ye
Kyle-Ye deleted the bugfix/button branch November 28, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: layout Layout, geometry, safe area, alignment, stacks, or sizing. impact: visual-diff Visual mismatch, screenshot diff, or rendering fidelity issue. platform: macOS macOS-specific behavior or support. type: bug Something is not working correctly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant