Skip to content

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

Merged
M4n0x merged 1 commit into
mainfrom
refactor/bar-tile-clickable
Oct 22, 2026
Merged

M4n0x merged 1 commit into
mainfrom
refactor/bar-tile-clickable

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Problem

With Xcode 26.3 (Swift 6.2.4), swift build on main stops at BarView.swift:324, 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

The failure is the same on every attempt, and a longer -solver-expression-time-threshold doesn't help. CI's Xcode still builds main, so only contributors on the newer Xcode are blocked.

Changes

The if/else chain that makes a tile a button moves from body into clickable(_:output:), unchanged, and body calls it. That chain covers the click action, the popup, the link, the package update tile, and the disabled state while editing. Nothing changes in how tiles look or respond.

Testing

  • With Xcode 26.3, swift build --build-tests fails on main and succeeds on this branch.
  • swift test on this branch: 276 XCTest and 398 Swift Testing tests 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` stops at the bar tile's
`body`: "the compiler is unable to type-check this expression in
reasonable time". The chain that wraps the tile in a button for its
click action, popup or link now lives in `clickable(_:output:)`, and the
body calls it. Nothing changes in how tiles look or respond.
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner October 22, 2026 13:28
@M4n0x
M4n0x merged commit 3f8e64f into main Oct 22, 2026
7 checks passed
@M4n0x
M4n0x deleted the refactor/bar-tile-clickable branch October 22, 2026 13:43
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.6.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