crossmate

A collaborative crossword app for iOS
Log | Files | Refs | LICENSE

commit 22d706ba645f55fe74cea0c9ed86863e48bd6267
parent 3474d24c47170bd985d07c0f18d7ac567bdb9f95
Author: Michael Camilleri <[email protected]>
Date:   Tue, 21 Jul 2026 08:51:21 +0900

Fit the Share Card preview within its sheet

The Share Card preview could grow too tall on iPad because its scroll
container offered unbounded vertical space. This commit lets the preview
use the sheet's remaining bounded space, so scaledToFit reduces it to
show the complete card while keeping the controls visible.

Co-Authored-By: Codex GPT 5.6 Sol <[email protected]>

Diffstat:
MCrossmate/Views/Puzzle/SuccessPanel.swift | 21++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/Crossmate/Views/Puzzle/SuccessPanel.swift b/Crossmate/Views/Puzzle/SuccessPanel.swift @@ -578,17 +578,16 @@ private struct SharePreviewSheet: View { var body: some View { NavigationStack { VStack(spacing: 20) { - ScrollView { - image - .resizable() - .scaledToFit() - .clipShape(RoundedRectangle(cornerRadius: 16, style: .continuous)) - .overlay( - RoundedRectangle(cornerRadius: 16, style: .continuous) - .strokeBorder(.separator, lineWidth: 0.5) - ) - .padding() - } + image + .resizable() + .scaledToFit() + .clipShape(RoundedRectangle(cornerRadius: 16, style: .continuous)) + .overlay( + RoundedRectangle(cornerRadius: 16, style: .continuous) + .strokeBorder(.separator, lineWidth: 0.5) + ) + .padding() + .frame(maxWidth: .infinity, maxHeight: .infinity) Toggle("Include Time", isOn: $includeClock) .disabled(!item.hasClock)