crossmate

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

commit ef0790e65db5180ca840025c080be31ec32b89c2
parent 7f15010b999739dac7d70fb504ab03ee64404c79
Author: Michael Camilleri <[email protected]>
Date:   Wed,  8 Jul 2026 10:10:36 +0900

Fix background for set profile name message

Diffstat:
MCrossmate/Views/GameList/GameListView.swift | 38+++++++++++++++++++++-----------------
1 file changed, 21 insertions(+), 17 deletions(-)

diff --git a/Crossmate/Views/GameList/GameListView.swift b/Crossmate/Views/GameList/GameListView.swift @@ -424,25 +424,29 @@ struct GameListView: View { } .overlay { if games.isEmpty { - if preferences.hasName { - ContentUnavailableView { - Label("No Puzzles", systemImage: "square.grid.3x3") - } description: { - Text("Tap the + button to start a new puzzle, or pull down to refresh.") - } - } else { - ContentUnavailableView { - Label("Set Your Profile Name", systemImage: "person.text.rectangle") - } description: { - Text("Choose the name other players will see.") - } actions: { - Button { - nameDraft = "" - showingNamePrompt = true - } label: { Text("Set Profile Name") } - .buttonStyle(.borderedProminent) + Group { + if preferences.hasName { + ContentUnavailableView { + Label("No Puzzles", systemImage: "square.grid.3x3") + } description: { + Text("Tap the + button to start a new puzzle, or pull down to refresh.") + } + } else { + ContentUnavailableView { + Label("Set Your Profile Name", systemImage: "person.text.rectangle") + } description: { + Text("Choose the name other players will see.") + } actions: { + Button { + nameDraft = "" + showingNamePrompt = true + } label: { Text("Set Profile Name") } + .buttonStyle(.borderedProminent) + } } } + .frame(maxWidth: .infinity, maxHeight: .infinity) + .background(Color(.systemGroupedBackground)) } } .onChange(of: completed.count) { oldCount, newCount in