From 3c5c72cced003d4274e1e261d24cffc6e0fbbcbc Mon Sep 17 00:00:00 2001
From: Oliver Wiese <oliver.wiese@fu-berlin.de>
Date: Wed, 21 Apr 2021 16:51:03 +0200
Subject: [PATCH] make compose view scrollable.

---
 enzevalos_iphone/SwiftUI/Compose/ComposeView.swift | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/enzevalos_iphone/SwiftUI/Compose/ComposeView.swift b/enzevalos_iphone/SwiftUI/Compose/ComposeView.swift
index 512d4da2..24683122 100644
--- a/enzevalos_iphone/SwiftUI/Compose/ComposeView.swift
+++ b/enzevalos_iphone/SwiftUI/Compose/ComposeView.swift
@@ -40,9 +40,8 @@ struct ComposeView: View {
             VStack {
                 // Top bar with Cancel and Send button
                 ComposeViewHeader(model: model)
-                
+                ScrollView{
                 Divider()
-                
                 // "To" recipients
                 RecipientField(model: model.recipientsModel.toModel,
                                composeViewHeight: geometry.size.height)
@@ -87,6 +86,7 @@ struct ComposeView: View {
                     .transition(.move(edge: .bottom))
                 }
             }
+            }
             // show this alert when user sends the mail without attachments,
             // but mentions them in the mail
             .alert(isPresented: $model.showAttachmentAlert) {
@@ -94,7 +94,6 @@ struct ComposeView: View {
             }
             .padding()
             .animation(.easeInOut)
-            .ignoresSafeArea(edges: /*@START_MENU_TOKEN@*/.bottom/*@END_MENU_TOKEN@*/)
             .onDisappear{
                 // when the ComposeView is closed, we make sure to
                 // clean the Documents Directory from all the remaining
-- 
GitLab