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
6baf0d22
Commit
6baf0d22
authored
5 years ago
by
Oliver Wiese
Browse files
Options
Downloads
Patches
Plain Diff
clean code
parent
65984302
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
enzevalos_iphone/SwiftUI/Read/ReadMainView.swift
+1
-23
1 addition, 23 deletions
enzevalos_iphone/SwiftUI/Read/ReadMainView.swift
with
1 addition
and
23 deletions
enzevalos_iphone/SwiftUI/Read/ReadMainView.swift
+
1
−
23
View file @
6baf0d22
...
...
@@ -20,9 +20,7 @@ import SwiftUI
struct
ReadMainView
<
M
:
DisplayMail
>
:
View
{
public
var
mail
:
M
@State
private
var
isSecIndExpanded
=
false
var
body
:
some
View
{
TabView
{
ForEach
(
Tabs
,
id
:
\
.
id
){
tab
in
...
...
@@ -33,7 +31,6 @@ struct ReadMainView <M: DisplayMail>: View {
}
}
}
.
navigationBarItems
(
trailing
:
moreInfoButton
)
}
//TODO: not use AnyView-workaround
...
...
@@ -63,25 +60,6 @@ struct ReadMainView <M: DisplayMail>: View {
]
}
}
var
moreInfoButton
:
some
View
{
Button
(
action
:
{
self
.
isSecIndExpanded
.
toggle
()
}){
Image
(
systemName
:
isSecIndExpanded
?
"arrow.up.circle"
:
"info.circle"
)
}
}
var
naviTitle
:
String
{
return
mail
.
subject
??
""
}
var
detailInfo
:
some
View
{
let
dialog
=
mail
.
dialog
return
DialogView
(
option
:
dialog
,
ctaAction
:
{
self
.
isSecIndExpanded
=
false
},
additionalAction
:
nil
,
dismissAction
:
nil
,
extend
:
false
)
}
}
...
...
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