Skip to content
Snippets Groups Projects

Messenger example - clean up

2 files
+ 13
9
Compare changes
  • Side-by-side
  • Inline

Files

@@ -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