Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Elixxir dApps SDK Swift
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
Elixxir dApps SDK Swift
Merge requests
!74
Messenger example - clean up
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Messenger example - clean up
feature/messenger-example-clean-up
into
development
Overview
0
Commits
6
Pipelines
0
Changes
2
Merged
Messenger example - clean up
Dariusz Rybicki
requested to merge
feature/messenger-example-clean-up
into
development
Sep 8, 2022
Overview
0
Commits
6
Pipelines
0
Changes
2
0
0
Merge request reports
Viewing commit
d042833c
Prev
Next
Show latest version
2 files
+
13
−
9
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
d042833c
Update UI
· d042833c
Dariusz Rybicki
authored
Sep 8, 2022
Examples/xx-messenger/Sources/ContactFeature/ContactView.swift
+
8
−
4
View file @ d042833c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -79,10 +79,14 @@ public struct ContactView: View {
@@ -79,10 +79,14 @@ public struct ContactView: View {
Button
{
Button
{
viewStore
.
send
(
.
importFactsTapped
)
viewStore
.
send
(
.
importFactsTapped
)
}
label
:
{
}
label
:
{
if
viewStore
.
dbContact
==
nil
{
HStack
{
Text
(
"Save contact"
)
if
viewStore
.
dbContact
==
nil
{
}
else
{
Text
(
"Save contact"
)
Text
(
"Update contact"
)
}
else
{
Text
(
"Update contact"
)
}
Spacer
()
Image
(
systemName
:
"arrow.down"
)
}
}
}
}
}
header
:
{
}
header
:
{
Loading