Commit d33ab21d authored by hannes's avatar hannes
Browse files

composeview angepasst

parent 13d3dafe
......@@ -92,16 +92,10 @@ fileprivate struct MailOptionsWrapper<Content:View> : View {
@State private var opens : Bool = false
@State private var dst : AnyView = AnyView()
func newMail(to receivers : [AddressRecord?]){
var receivers = receivers.compactMap{$0}
let to = receivers.removeFirst()
let receivers = receivers.compactMap{$0}.map{$0.email}
setDst(
ComposeView(model:
ComposeModel(model:
SelectReceiverModel(
to: to,
ccs: receivers
)
)
ComposeView(
preData: PreMailData(to: receivers)
)
)
open()
......
......@@ -25,7 +25,7 @@ struct UnreadCountIcon: View {
var body: some View {
FloatingActionButton(
radius:5,
elevation:0,
//elevation:0,//now depricated
onShortPress: onPress
){
VStack{
......
......@@ -102,11 +102,11 @@ class ReadModel <M: DisplayMail>: ObservableObject {
struct PreMailData: Identifiable {
var id = UUID()
var body: String
var subject: String
var to: [String]
var cc: [String]
var bcc: [String]
var body: String = ""
var subject: String = ""
var to: [String] = []
var cc: [String] = []
var bcc: [String] = []
// TODO: Consider message ids for response mail
static func invitePerson<M: DisplayMail> (mail: M) -> PreMailData? {
......
Supports Markdown
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