diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index 5528452..29f7227 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -309,7 +309,10 @@ public struct ShoeGazeBuilderView: View { } } - private var presentationChrome: some View { + // Split off the first half of the presentation chain into its own computed property: the full + // modifier chain is long enough to blow the Swift expression type-checker's budget, so this + // boundary keeps each half small enough to type-check quickly. + private var chromeWithPrompts: some View { layoutChrome .background(boardsSheetAnchor) .background(rigExportAnchor) @@ -342,6 +345,10 @@ public struct ShoeGazeBuilderView: View { Text("“\(request.entry.name)” is a built-in starter rig. Overwriting replaces it in " + "your library. Save as a new rig to keep the original.") } + } + + private var presentationChrome: some View { + chromeWithPrompts .confirmationDialog( "Erase all rigs?", isPresented: $showEraseAllDialog,