Commit d6e06aed authored by Oliver Wiese's avatar Oliver Wiese

Merge branch 'dev'

parents 05763bee 4d8e42fc
......@@ -48,7 +48,6 @@ struct Inbox: View {
private var mailList: some View {
List (self.keyrecords.filter(filterKeyRecord), id: \.self){
record in
//KeyRecordRow(keyrecord: record, coord: self.coord)
KeyRecordRow(keyrecord: record)
}
.resignKeyboardOnDragGesture() // hide keyboard when dragging
......
......@@ -11,14 +11,16 @@ import SwiftUI
struct KeyRecordRow: View {
private static let coord = AppDelegate.getAppDelegate().inboxCoordinator
var keyrecord: KeyRecord
let keyrecord: KeyRecord
var first: PersistentMail?
var second: PersistentMail?
let name: String
init(keyrecord: KeyRecord) {
self.keyrecord = keyrecord
first = keyrecord.firstMail
second = keyrecord.secondMail
name = keyrecord.name
}
......@@ -31,7 +33,7 @@ struct KeyRecordRow: View {
.offset(y: -10)
}
HStack {
name
nameView
Spacer()
moreMails
}
......@@ -76,8 +78,8 @@ struct KeyRecordRow: View {
}
}
private var name: some View {
Text(self.keyrecord.myNick)
private var nameView: some View {
Text(name)
.frame(maxWidth: 300, alignment: .leading)
.lineLimit(1)
.onTapGesture {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment