Skip to content
Snippets Groups Projects
Commit 6baf0d22 authored by Oliver Wiese's avatar Oliver Wiese
Browse files

clean code

parent 65984302
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment