← All repositories

crossmate

A collaborative crossword app for iPhone and iPad

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


commit 5ab0b2b441677c1e775db26de5e2786f4c317c8c
parent e220f22a61f7aff0cdf9a0ba77bb7ca2395fc7e7
Author: Michael Camilleri <[email protected]>
Date:   Sun, 10 May 2026 20:01:48 +0900

Move diagnostics menu option into Puzzle Menu

Diffstat

MCrossmate/Views/PuzzleView.swift | 25++++++++++---------------

1 file changed, 10 insertions(+), 15 deletions(-)

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

@@ -651,9 +651,6 @@ private struct PuzzleToolbarModifier: ViewModifier {
     func body(content: Content) -> some View {
         content.toolbar {
             ToolbarItemGroup(placement: .topBarTrailing) {
-                if debugMode {
-                    debuggingMenu
-                }
                 pencilButton
                 entryMenu
                 hintsMenu
@@ -700,6 +697,16 @@ private struct PuzzleToolbarModifier: ViewModifier {
                 Button("Toggle Direction") { session.toggleDirection() }
             }
 
+            if debugMode {
+                Section {
+                    NavigationLink {
+                        DiagnosticsView()
+                    } label: {
+                        Text("iCloud Diagnostics")
+                    }
+                }
+            }
+
             Section {
                 Button("Clear Word") { session.clearCurrentWord() }
                 Button("Clear Puzzle", role: .destructive) { session.clearPuzzle() }
@@ -740,18 +747,6 @@ private struct PuzzleToolbarModifier: ViewModifier {
         .disabled(isSolved)
     }
 
-    private var debuggingMenu: some View {
-        Menu {
-            NavigationLink {
-                DiagnosticsView()
-            } label: {
-                Text("iCloud Diagnostics")
-            }
-        } label: {
-            Label("Debugging", systemImage: "screwdriver.fill")
-        }
-    }
-
     @ViewBuilder
     private var playerRosterSection: some View {
         Section {