From e2002057dbfca533e67d03201e39ed3544a874e0 Mon Sep 17 00:00:00 2001 From: fmodf Date: Wed, 23 Oct 2024 17:13:18 +0200 Subject: [PATCH] wip --- .../AppData/Services/Database.swift | 10 +++++----- .../Main/Conversation/ConversationScreen.swift | 15 ++++++++++----- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/ConversationsClassic/AppData/Services/Database.swift b/ConversationsClassic/AppData/Services/Database.swift index 3a2fba4..84bc6f5 100644 --- a/ConversationsClassic/AppData/Services/Database.swift +++ b/ConversationsClassic/AppData/Services/Database.swift @@ -46,11 +46,11 @@ private extension Database { static let config: Configuration = { var config = Configuration() #if DEBUG - // // verbose and debugging in DEBUG builds only. - // config.publicStatementArguments = true - // config.prepareDatabase { db in - // db.trace { print("SQL> \($0)\n") } - // } + // verbose and debugging in DEBUG builds only. + config.publicStatementArguments = true + config.prepareDatabase { db in + db.trace { print("SQL> \($0)\n") } + } #endif return config }() diff --git a/ConversationsClassic/View/Main/Conversation/ConversationScreen.swift b/ConversationsClassic/View/Main/Conversation/ConversationScreen.swift index 1b14f55..23077ae 100644 --- a/ConversationsClassic/View/Main/Conversation/ConversationScreen.swift +++ b/ConversationsClassic/View/Main/Conversation/ConversationScreen.swift @@ -28,12 +28,17 @@ struct ConversationScreen: View { router.dismissScreen() } ), - centerText: .init(text: centerText(), action: { - router.showScreen(.fullScreenCover) { _ in - ConversationSettingsScreen() - .environmentObject(settings) + centerText: .init(text: centerText()), + rightButton: .init( + image: Image(systemName: "gear"), + action: { + router.showScreen(.push) { _ in + ConversationSettingsScreen() + .environmentObject(settings) + .navigationBarHidden(true) + } } - }) + ) ) // Msg list