diff --git a/Examples/xx-messenger/Sources/MyContactFeature/MyContactView.swift b/Examples/xx-messenger/Sources/MyContactFeature/MyContactView.swift index f32af24270f762b6a11f5a43602f013709e14344..eca55d6293f8caed3c695b8bca1e81c3b568999d 100644 --- a/Examples/xx-messenger/Sources/MyContactFeature/MyContactView.swift +++ b/Examples/xx-messenger/Sources/MyContactFeature/MyContactView.swift @@ -1,3 +1,4 @@ +import AppCore import ComposableArchitecture import SwiftUI import XXModels @@ -49,8 +50,17 @@ public struct MyContactView: View { public var body: some View { WithViewStore(store, observe: ViewState.init) { viewStore in Form { + Section { + Text(viewStore.contact?.id.hexString ?? "") + .font(.footnote.monospaced()) + .textSelection(.enabled) + } header: { + Label("ID", systemImage: "number") + } + Section { Text(viewStore.contact?.username ?? "") + .textSelection(.enabled) } header: { Label("Username", systemImage: "person") } @@ -59,6 +69,7 @@ public struct MyContactView: View { if let contact = viewStore.contact { if let email = contact.email { Text(email) + .textSelection(.enabled) Button(role: .destructive) { viewStore.send(.unregisterEmailTapped) } label: { @@ -135,6 +146,7 @@ public struct MyContactView: View { if let contact = viewStore.contact { if let phone = contact.phone { Text(phone) + .textSelection(.enabled) Button(role: .destructive) { viewStore.send(.unregisterPhoneTapped) } label: {