Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
enzevalos_iphone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
enzevalos
enzevalos_iphone
Commits
ce870728
Commit
ce870728
authored
4 years ago
by
Oliver Wiese
Browse files
Options
Downloads
Patches
Plain Diff
change first view when reading a mail
parent
9cb21fae
No related branches found
No related tags found
1 merge request
!84
Resolve "Missing backend features/connections for UI"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
enzevalos_iphone/SwiftUI/Read/ReadModel.swift
+5
-1
5 additions, 1 deletion
enzevalos_iphone/SwiftUI/Read/ReadModel.swift
with
5 additions
and
1 deletion
enzevalos_iphone/SwiftUI/Read/ReadModel.swift
+
5
−
1
View file @
ce870728
...
...
@@ -36,13 +36,17 @@ enum ReadPart {
class
ReadModel
<
M
:
DisplayMail
>
:
ObservableObject
{
@Published
var
dismissView
=
false
@Published
var
currentTab
=
ReadPart
.
Securit
y
.
value
@Published
var
currentTab
=
ReadPart
.
Bod
y
.
value
private
var
userAction
:
UserAction
?
var
mail
:
M
init
(
mail
:
M
)
{
self
.
mail
=
mail
if
mail
.
encryptionState
==
.
UnableToDecrypt
||
mail
.
warnings
.
count
>
0
{
currentTab
=
ReadPart
.
Security
.
value
}
}
func
onDisappear
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment