Compare commits
2 Commits
9beb2e423e
...
e04447a140
Author | SHA1 | Date | |
---|---|---|---|
|
e04447a140 | ||
|
5205f75f8d |
BIN
Banner.key
BIN
Banner.key
Binary file not shown.
@ -29,10 +29,10 @@ struct HistoryListItem: View {
|
||||
return startText
|
||||
}
|
||||
let diff = Int(rCounter) - Int(sentCounter)
|
||||
guard diff != 1 && diff != 0 else {
|
||||
guard diff != 1 else {
|
||||
return startText
|
||||
}
|
||||
return startText + " (\(diff))"
|
||||
return startText + "→\(rCounter)"
|
||||
}
|
||||
|
||||
var timeOffsetText: String {
|
||||
|
@ -9,8 +9,8 @@ struct KeyView: View {
|
||||
var isCompensatingDaylightTime: Bool
|
||||
|
||||
var body: some View {
|
||||
ScrollView {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
GeometryReader { geo in
|
||||
VStack(alignment: .leading, spacing: 16) {
|
||||
ForEach(KeyManagement.KeyType.allCases) { keyType in
|
||||
SingleKeyView(
|
||||
keyManager: $keyManager,
|
||||
@ -21,7 +21,6 @@ struct KeyView: View {
|
||||
}
|
||||
Text("If the remote has daylight savings time wrongly set, then the time validation will fail. Use this option to send messages with adjusted timestamps. Warning: Incorrect use of this option will allow replay attacks.")
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
}.padding()
|
||||
}
|
||||
}
|
||||
|
@ -45,15 +45,13 @@ struct SingleKeyView: View {
|
||||
keyManager.generate(type)
|
||||
needRefresh.toggle()
|
||||
}
|
||||
.padding([.horizontal, .bottom])
|
||||
.padding(.top, 4)
|
||||
.padding()
|
||||
|
||||
Button(type.usesHashing ? "Copy hash" : "Copy") {
|
||||
UIPasteboard.general.string = copyText
|
||||
}
|
||||
.disabled(!hasKey)
|
||||
.padding([.horizontal, .bottom])
|
||||
.padding(.top, 4)
|
||||
.padding()
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user