Skip to content
Snippets Groups Projects
Commit d33ab21d authored by hannes's avatar hannes
Browse files

composeview angepasst

parent 13d3dafe
No related branches found
No related tags found
1 merge request!85Thesis Hannes Staging
...@@ -92,16 +92,10 @@ fileprivate struct MailOptionsWrapper<Content:View> : View { ...@@ -92,16 +92,10 @@ fileprivate struct MailOptionsWrapper<Content:View> : View {
@State private var opens : Bool = false @State private var opens : Bool = false
@State private var dst : AnyView = AnyView() @State private var dst : AnyView = AnyView()
func newMail(to receivers : [AddressRecord?]){ func newMail(to receivers : [AddressRecord?]){
var receivers = receivers.compactMap{$0} let receivers = receivers.compactMap{$0}.map{$0.email}
let to = receivers.removeFirst()
setDst( setDst(
ComposeView(model: ComposeView(
ComposeModel(model: preData: PreMailData(to: receivers)
SelectReceiverModel(
to: to,
ccs: receivers
)
)
) )
) )
open() open()
......
...@@ -25,7 +25,7 @@ struct UnreadCountIcon: View { ...@@ -25,7 +25,7 @@ struct UnreadCountIcon: View {
var body: some View { var body: some View {
FloatingActionButton( FloatingActionButton(
radius:5, radius:5,
elevation:0, //elevation:0,//now depricated
onShortPress: onPress onShortPress: onPress
){ ){
VStack{ VStack{
......
...@@ -102,11 +102,11 @@ class ReadModel <M: DisplayMail>: ObservableObject { ...@@ -102,11 +102,11 @@ class ReadModel <M: DisplayMail>: ObservableObject {
struct PreMailData: Identifiable { struct PreMailData: Identifiable {
var id = UUID() var id = UUID()
var body: String var body: String = ""
var subject: String var subject: String = ""
var to: [String] var to: [String] = []
var cc: [String] var cc: [String] = []
var bcc: [String] var bcc: [String] = []
// TODO: Consider message ids for response mail // TODO: Consider message ids for response mail
static func invitePerson<M: DisplayMail> (mail: M) -> PreMailData? { static func invitePerson<M: DisplayMail> (mail: M) -> PreMailData? {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment