Skip to content
Snippets Groups Projects

Restore contacts from backup

Merged Dariusz Rybicki requested to merge feature/restore-contacts-from-backup into development
1 file
+ 10
0
Compare changes
  • Side-by-side
  • Inline
@@ -13,10 +13,12 @@ public struct ContactLookupView: View {
init(state: ContactLookupState) {
id = state.id
isLookingUp = state.isLookingUp
failure = state.failure
}
var id: Data
var isLookingUp: Bool
var failure: String?
}
public var body: some View {
@@ -43,6 +45,14 @@ public struct ContactLookupView: View {
} header: {
Text("Contact ID")
}
if let failure = viewStore.failure {
Section {
Text(failure)
} header: {
Text("Error")
}
}
}
.navigationTitle("Lookup")
}
Loading