Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
enzevalos
enzevalos_iphone
Commits
3c5c72cc
Commit
3c5c72cc
authored
Apr 21, 2021
by
Oliver Wiese
Browse files
make compose view scrollable.
parent
70134dab
Changes
1
Hide whitespace changes
Inline
Side-by-side
enzevalos_iphone/SwiftUI/Compose/ComposeView.swift
View file @
3c5c72cc
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment