Repository navigation
refactor: move a bar tile's hover handling out of its body so Xcode 26.3 compiles it - #295
Merged
Merged
Conversation
…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.
|
🎉 This PR is included in version 0.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
With Xcode 26.3 (Swift 6.2.4),
swift buildonmain(c990673) stops atBarView.swift:379, the bar tile'sbody:It fails the same way on every attempt. #292 added a branch for hover controls to the tile's
onHoverhandler, which pushed the body over the limit again, as happened before #239. CI's Xcode still buildsmain, so only contributors on the newer Xcode are blocked.Changes
The
onHoverhandler moves frombodyintohoverChanged(_:tooltip:output:), unchanged, andbodycalls it. The handler opens hover popups, hover controls and tooltips, and runs the widget'smouseEnteredandmouseExitedactions. Nothing changes in how tiles respond to the pointer.Testing
swift build --build-testsfails onmainand succeeds on this branch.swift teston this branch: 294 XCTest and 449 Swift Testing tests pass.git diff --checkand 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