fix(WhereUI): guard Settings navigation footprints - #260
Open
kyleve wants to merge 2 commits into
Open
Conversation
kyleve
commented
Aug 13, 2026
| /// (46,912 bytes) from the 62,680-byte concrete value that overflowed a | ||
| /// device stack while SwiftUI applied this scope's environment during a | ||
| /// navigation push. Large trees belong behind a small nominal child view. | ||
| static var maximumContentFootprint: Int { |
Owner
Author
There was a problem hiding this comment.
Posted by an AI agent on kve's behalf.\n\nThis threshold is intentionally a DEBUG/CI heuristic, not a portable ABI boundary. If a future destination trips it, extract the large declarative subtree behind a nominal child view rather than raising the threshold; Release deliberately has no corresponding precondition.
kyleve
force-pushed
the
codex/guard-settings-navigation-footprints
branch
from
August 13, 2026 19:00
6d0a17b to
2aee2fa
Compare
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.
Summary
SettingsFocusScopeSettingsRouteViewwhile preserving the production stack's heterogeneous navigationWhy
The Estimated Time & Planning feature page pushed a large declarative view value over the device stack limit while SwiftUI applied environment values during navigation. The first guard attempt then exposed two problems of its own: its homogeneous
[SettingsRoute]test seam prevented child destinations from pushing other value types, and its heuristic size check would have remained an intentional Release crash.Review focus
NavigationStack, soEvidenceandShareEvidenceFeaturesView.Routecan coexist withSettingsRoute.SettingsRouteViewTestsowns a heterogeneousNavigationPath, covers every non-sheet destination, and proves both nested route types reach a third navigation level.SettingsViewinitializer ships or needs SPI exposure.Compatibility
No persisted data, user-visible behavior, or Release precondition changes. The child PR is stacked on #252 because that feature page supplied the concrete tree that reproduced the crash.
Testing
./swiftformat --lint./test WhereUITests— 432 tests passed./test --only 'WhereUITests/SettingsRouteViewTests'— 3 tests and 14 destination arguments passed without the homogeneous-path warning./test --snapshots— 43 suites passed without recording referencesmain,WhereFormatTestspassed 27 tests and the Calendar/Year snapshot suites both passedStack