commit a0072e096876a4e7f3bc4d5a5338e0719bf6e004
parent 52fde63a3fa878af1fd1276b29047997d0bbfe13
Author: Michael Camilleri <[email protected]>
Date: Fri, 17 Apr 2026 17:21:57 +0900
Tweak change name alert
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/Crossmate/Views/PuzzleView.swift b/Crossmate/Views/PuzzleView.swift
@@ -69,6 +69,7 @@ struct PuzzleView: View {
.background(Color(.systemGroupedBackground))
}
.background(Color(.systemBackground))
+ .ignoresSafeArea(.keyboard)
.toolbar {
ToolbarItemGroup(placement: .topBarTrailing) {
Button {
@@ -158,6 +159,8 @@ struct PuzzleView: View {
}
.alert("Change Name", isPresented: $isRenaming) {
TextField("Name", text: $renameDraft)
+ .textInputAutocapitalization(.never)
+ .autocorrectionDisabled()
Button("Cancel", role: .cancel) {}
Button("Save") {
let trimmed = renameDraft.trimmingCharacters(in: .whitespacesAndNewlines)
@@ -165,6 +168,7 @@ struct PuzzleView: View {
preferences.name = trimmed
}
}
+ .keyboardShortcut(.defaultAction)
} message: {
Text("Enter the name other players will see.")
}