← All repositories

crossmate

A collaborative crossword app for iPhone and iPad

git clone https://code.inqk.net/crossmate.git


commit 33c3468e93d6b62e4d3bee70b593abef113bf25f
parent dd5f799414c81547f8174c96d38f4ed29fbb3044
Author: Michael Camilleri <[email protected]>
Date:   Wed, 22 Apr 2026 04:07:31 +0900

Support direction toggle via the Clue Bar

This commit allows a user to tap on the clue in the Clue Bar to toggle
the direction of their solving.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

Diffstat

MCrossmate/Views/PuzzleView.swift | 4++++

1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/Crossmate/Views/PuzzleView.swift b/Crossmate/Views/PuzzleView.swift

@@ -223,6 +223,10 @@ private struct ClueBar: View {
                 .frame(maxWidth: .infinity, alignment: .leading)
                 .clipped()
             }
+            .contentShape(Rectangle())
+            .onTapGesture {
+                session.toggleDirection()
+            }
 
             Button {
                 slideEdge = .trailing