Skip to content

refactor: move a bar tile's hover handling out of its body so Xcode 26.3 compiles it - #295

Merged
M4n0x merged 1 commit into
mainfrom
refactor/xcode-26-3-widget-hover
Oct 23, 2026
Merged

M4n0x merged 1 commit into
mainfrom
refactor/xcode-26-3-widget-hover

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Problem

With Xcode 26.3 (Swift 6.2.4), swift build on main (c990673) stops at BarView.swift:379, the bar tile's body:

error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions

It fails the same way on every attempt. #292 added a branch for hover controls to the tile's onHover handler, which pushed the body over the limit again, as happened before #239. CI's Xcode still builds main, so only contributors on the newer Xcode are blocked.

Changes

The onHover handler moves from body into hoverChanged(_:tooltip:output:), unchanged, and body calls it. The handler opens hover popups, hover controls and tooltips, and runs the widget's mouseEntered and mouseExited actions. Nothing changes in how tiles respond to the pointer.

Testing

  • With Xcode 26.3, swift build --build-tests fails on main and succeeds on this branch.
  • swift test on this branch: 294 XCTest and 449 Swift Testing tests pass.
  • git diff --check and commitlint pass.

Merging

A merge commit or rebase merge, which keeps the one commit. As a refactor, it doesn't trigger a release.

Claude Opus 5.5 via Claude Code

…6.3 compiles it

With Xcode 26.3 (Swift 6.2.4), `swift build` on main stops at the bar tile's `body` again
with "the compiler is unable to type-check this expression in reasonable time". The hover
controls branch from #292 pushed it over the limit. The `onHover` handler now lives in
`hoverChanged(_:tooltip:output:)`, unchanged, and the body calls it. Nothing changes in how
tiles respond to the pointer.
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner October 23, 2026 14:42
@M4n0x
M4n0x merged commit b1c38f2 into main Oct 23, 2026
7 checks passed
@M4n0x
M4n0x deleted the refactor/xcode-26-3-widget-hover branch October 23, 2026 14:49
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant