Skip to content

chore(sudoku): fix iOS 26 Text('+') concatenation deprecation in PracticeHubView - #740

Merged
wei18 merged 1 commit into
mainfrom
chore/735-text-concat-deprecation
Jul 9, 2026
Merged

wei18 merged 1 commit into
mainfrom
chore/735-text-concat-deprecation

Conversation

@wei18

@wei18 wei18 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Closes #735 — the 202607081028 build log flagged '+' was deprecated in iOS 26.0 at PracticeHubView.swift.

What (1 file, 2 hunks)

Both Text(...) + Text(...) + Text(...) sites → nested-Text string interpolation (Text("\(Text(...))\(Text(...))")), the SwiftUI-sanctioned replacement. Each nested Text keeps its OWN localization key — the dynamic LocalizedStringKey(difficulty.rawValue.capitalized), the verbatim separator, and the "ready" key stay distinct (not flattened — the #516 lesson). Repo-wide grep found these two were the only Text + Text concatenations in either app.

Verification

  • swift build: PracticeHubView recompiled, grep 'was deprecated in iOS 26' → 0 (warning gone).
  • SudokuUITests 216/216; the 3 PracticeHubView snapshots passed, not recorded — rendering pixel-identical.
  • swiftlint --strict 0. Leader verified key preservation inline.

🤖 Generated with Claude Code

…ation

PracticeHubView's hintRow built two Text values with the deprecated
`Text + Text` operator (iOS 26 warning at line 132). Switch both to
nested Text string interpolation, which preserves each segment's
localization key and verbatim formatting without the operator.

Repo-wide grep found no other `Text(...) + Text(...)` sites in either
app.

Closes #735

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 enabled auto-merge (squash) July 9, 2026 01:52
@wei18
wei18 merged commit 9cbf9c5 into main Jul 9, 2026
4 checks passed
@wei18
wei18 deleted the chore/735-text-concat-deprecation branch July 9, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(sudoku): fix iOS 26 Text('+') deprecation in PracticeHubView

1 participant