← All repositories

crossmate

A collaborative crossword app for iPhone and iPad

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


commit 8abf6b8f302be6fb1940956d52e30d65e5feaa00
parent eb3624d6d0eb6023a715cb26af2b3aac6a74aaff
Author: Michael Camilleri <[email protected]>
Date:   Fri, 17 Apr 2026 17:32:28 +0900

Add draft toggling to the keyboard overflow

Diffstat

MCrossmate/Views/KeyboardView.swift | 13++++++++++++-

1 file changed, 12 insertions(+), 1 deletion(-)

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

@@ -39,11 +39,22 @@ struct KeyboardView: View {
                     .keyWidthMultiplier(1.5)
                     .popover(isPresented: $showingOverflow) {
                         VStack(alignment: .leading, spacing: 0) {
+                            Button {
+                                showingOverflow = false
+                                session.togglePencil()
+                            } label: {
+                                Text("Toggle Draft")
+                                    .frame(maxWidth: .infinity, alignment: .leading)
+                                    .padding(.horizontal, 16)
+                                    .padding(.vertical, 12)
+                            }
+                            .buttonStyle(.plain)
+
                             Button {
                                 showingOverflow = false
                                 session.startRebus()
                             } label: {
-                                Text("Rebus")
+                                Text("Enter Rebus")
                                     .frame(maxWidth: .infinity, alignment: .leading)
                                     .padding(.horizontal, 16)
                                     .padding(.vertical, 12)