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
902cb3b9
Commit
902cb3b9
authored
4 years ago
by
cruxfilm
Browse files
Options
Downloads
Patches
Plain Diff
Fixed merge conflict in SenderViewMain.
parent
352214a4
No related branches found
No related tags found
1 merge request
!74
Integration of new ComposeView
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
enzevalos_iphone/SwiftUI/Read/Tabbed Views/SenderViewMain.swift
+19
-20
19 additions, 20 deletions
...los_iphone/SwiftUI/Read/Tabbed Views/SenderViewMain.swift
with
19 additions
and
20 deletions
enzevalos_iphone/SwiftUI/Read/Tabbed Views/SenderViewMain.swift
+
19
−
20
View file @
902cb3b9
...
...
@@ -23,11 +23,10 @@ import SwiftUI
import
CoreLocation
struct
SenderViewMain
<
M
:
DisplayMail
>
:
View
{
// SEE: PersonNameComponents
@EnvironmentObject
var
model
:
ReadModel
<
M
>
@State
var
selectedLandmark
:
Landmark
?
=
nil
@State
var
showingLandmarkDetails
=
false
...
...
@@ -73,19 +72,19 @@ struct SenderViewMain <M: DisplayMail>: View {
}
private
var
icon
:
some
View
{
model
.
mail
.
sender
.
avatar
.
resizable
()
.
frame
(
width
:
130
,
height
:
110
)
.
clipShape
(
Circle
())
.
overlay
(
Circle
()
.
stroke
(
Color
.
white
,
lineWidth
:
4
))
.
shadow
(
radius
:
10
)
.
offset
(
y
:
-
110
/
2
)
.
padding
(
.
bottom
,
-
110
/
2
)
.
onTapGesture
{
self
.
goToContact
(
contact
:
self
.
model
.
mail
.
sender
)
NavigationLink
(
destination
:
ContactView
(
contact
:
model
.
mail
.
sender
,
fromMail
:
model
.
mail
))
{
model
.
mail
.
sender
.
avatar
.
resizable
()
.
frame
(
width
:
130
,
height
:
110
)
.
clipShape
(
Circle
())
.
overlay
(
Circle
()
.
stroke
(
Color
.
white
,
lineWidth
:
4
))
.
shadow
(
radius
:
10
)
.
offset
(
y
:
-
110
/
2
)
.
padding
(
.
bottom
,
-
110
/
2
)
}
}
private
var
sender
:
some
View
{
VStack
(
alignment
:
.
leading
,
spacing
:
10
)
{
HStack
{
...
...
@@ -108,13 +107,13 @@ struct SenderViewMain <M: DisplayMail>: View {
}
HStack
{
Text
(
String
(
format
:
NSLocalizedString
(
"ReadView.Sender.Previous"
,
comment
:
"100 previous received mails"
),
model
.
mail
.
sender
.
previousMails
))
Spacer
()
Spacer
()
Text
(
String
(
format
:
NSLocalizedString
(
"ReadView.Sender.Responses"
,
comment
:
"5 previous sent mails"
),
model
.
mail
.
sender
.
previousResponses
))
// TODO: Add last mail date
// TODO: Go to mails?
}
}
.
padding
(
10
)
.
padding
(
10
)
}
private
var
map
:
some
View
{
...
...
@@ -154,16 +153,16 @@ struct SenderViewMain <M: DisplayMail>: View {
}
.
alert
(
isPresented
:
$showingLandmarkDetails
)
{
/// alert displays the landmark details and gets trigered when the user taps the information button of a landmark
Alert
(
title
:
Text
(
"Domain for this location"
),
message
:
Text
(
selectedLandmark
?
.
domain
??
"Missing place information"
),
dismissButton
:
.
default
(
Text
(
"OK"
))
)
}
}
}
}
private
func
goToContact
(
contact
:
M
.
C
)
{
/* guard let con = contact.keyRecord else {
print("No record...")
return
}
AppDelegate.getAppDelegate().readViewCoordinator?.pushContactView(contact: con) */
/* guard let con = contact.keyRecord else {
print("No record...")
return
}
AppDelegate.getAppDelegate().readViewCoordinator?.pushContactView(contact: con) */
}
}
...
...
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