From c049f9c9d661f9492d4e1c3e307e1f44c1843252 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Sun, 14 Jan 2024 12:48:43 +0100 Subject: [PATCH] Improve history item layout on phone --- .../xcschemes/xcschememanagement.plist | 9 +++++++-- Sesame/History/HistoryListItem.swift | 14 ++++---------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/Sesame.xcodeproj/xcuserdata/ch.xcuserdatad/xcschemes/xcschememanagement.plist b/Sesame.xcodeproj/xcuserdata/ch.xcuserdatad/xcschemes/xcschememanagement.plist index 98feb3a..b623b9b 100644 --- a/Sesame.xcodeproj/xcuserdata/ch.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/Sesame.xcodeproj/xcuserdata/ch.xcuserdatad/xcschemes/xcschememanagement.plist @@ -67,6 +67,11 @@ orderHint 0 + Sesame Watch App.xcscheme_^#shared#^_ + + orderHint + 1 + Sesame-Watch Watch App.xcscheme_^#shared#^_ orderHint @@ -75,12 +80,12 @@ Sesame-WidgetExtension.xcscheme_^#shared#^_ orderHint - 2 + 0 Sesame.xcscheme_^#shared#^_ orderHint - 0 + 2 diff --git a/Sesame/History/HistoryListItem.swift b/Sesame/History/HistoryListItem.swift index 209e36a..13df129 100644 --- a/Sesame/History/HistoryListItem.swift +++ b/Sesame/History/HistoryListItem.swift @@ -22,12 +22,8 @@ struct HistoryListItem: View { "\(Int(entry.roundTripTime * 1000)) ms" } - var clientNonceText: String { - "\(entry.message.clientChallenge)" - } - - var serverNonceText: String { - "\(entry.message.serverChallenge)" + var noncesText: String { + "\(entry.message.clientChallenge) → \(entry.message.serverChallenge)" } var body: some View { @@ -42,10 +38,8 @@ struct HistoryListItem: View { HStack { Image(systemSymbol: .arrowUpArrowDownCircle) Text(roundTripText).padding(.trailing) - Image(systemSymbol: .lockIphone) - Text(clientNonceText).padding(.trailing) - Image(systemSymbol: .doorRightHandClosed) - Text(serverNonceText).padding(.trailing) + Image(systemSymbol: .keyHorizontal) + Text(noncesText) } .foregroundColor(.secondary) .font(.footnote)