Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
enzevalos_iphone
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
64
Issues
64
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
3
Merge Requests
3
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
enzevalos
enzevalos_iphone
Commits
6baf0d22
Commit
6baf0d22
authored
Apr 18, 2020
by
Oliver Wiese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean code
parent
65984302
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
enzevalos_iphone/SwiftUI/Read/ReadMainView.swift
enzevalos_iphone/SwiftUI/Read/ReadMainView.swift
+1
-23
No files found.
enzevalos_iphone/SwiftUI/Read/ReadMainView.swift
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
)
}
}
...
...
Write
Preview
Markdown
is supported
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