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

clean code

parent 65984302
Branches
No related tags found
No related merge requests found
...@@ -20,9 +20,7 @@ import SwiftUI ...@@ -20,9 +20,7 @@ import SwiftUI
struct ReadMainView <M: DisplayMail>: View { struct ReadMainView <M: DisplayMail>: View {
public var mail: M public var mail: M
@State private var isSecIndExpanded = false
var body: some View { var body: some View {
TabView{ TabView{
ForEach(Tabs, id: \.id ){ tab in ForEach(Tabs, id: \.id ){ tab in
...@@ -33,7 +31,6 @@ struct ReadMainView <M: DisplayMail>: View { ...@@ -33,7 +31,6 @@ struct ReadMainView <M: DisplayMail>: View {
} }
} }
} }
.navigationBarItems(trailing: moreInfoButton)
} }
//TODO: not use AnyView-workaround //TODO: not use AnyView-workaround
...@@ -63,25 +60,6 @@ struct ReadMainView <M: DisplayMail>: View { ...@@ -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