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 {
Button {
viewStore.send(.importFactsTapped)
} label: {
if viewStore.dbContact == nil {
Text("Save contact")
} else {
Text("Update contact")
HStack {
if viewStore.dbContact == nil {
Text("Save contact")
} else {
Text("Update contact")
}
Spacer()
Image(systemName: "arrow.down")
}
}
} header: {
Loading