Commit 6baf0d22 authored by Oliver Wiese's avatar Oliver Wiese

clean code

parent 65984302
......@@ -20,9 +20,7 @@ import SwiftUI
struct ReadMainView <M: DisplayMail>: View {
public var mail: M
@State private var isSecIndExpanded = false
var body: some View {
TabView{
ForEach(Tabs, id: \.id ){ tab in
......@@ -33,7 +31,6 @@ struct ReadMainView <M: DisplayMail>: View {
}
}
}
.navigationBarItems(trailing: moreInfoButton)
}
//TODO: not use AnyView-workaround
......@@ -63,25 +60,6 @@ struct ReadMainView <M: DisplayMail>: View {
]
}
}
var moreInfoButton: some View{
Button(action: {
self.isSecIndExpanded.toggle()
}){
Image(systemName: isSecIndExpanded ? "arrow.up.circle" : "info.circle")
}
}
var naviTitle: String {
return mail.subject ?? ""
}
var detailInfo: some View {
let dialog = mail.dialog
return DialogView(option: dialog, ctaAction: {
self.isSecIndExpanded = false
}, additionalAction: nil, dismissAction: nil, extend: false)
}
}
......
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