Moved the key over across from the name
Almost like a temporary verifier in a way. I think I would also like to organize this file eventually so its a bit easier to find things
This commit is contained in:
committed by
William Casarin
parent
70539ade45
commit
ea8394e7cf
@@ -54,14 +54,24 @@ struct ProfileNameView: View {
|
|||||||
Group {
|
Group {
|
||||||
if let real_name = profile?.display_name {
|
if let real_name = profile?.display_name {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
Text(real_name)
|
HStack {
|
||||||
.font(.title3.weight(.bold))
|
Text(real_name)
|
||||||
|
.font(.title3.weight(.bold))
|
||||||
|
|
||||||
|
KeyView(pubkey: pubkey)
|
||||||
|
.pubkey_context_menu(bech32_pubkey: pubkey)
|
||||||
|
}
|
||||||
ProfileName(pubkey: pubkey, profile: profile, prefix: "@", contacts: contacts, show_friend_confirmed: true)
|
ProfileName(pubkey: pubkey, profile: profile, prefix: "@", contacts: contacts, show_friend_confirmed: true)
|
||||||
.font(.callout)
|
.font(.callout)
|
||||||
.foregroundColor(.gray)
|
.foregroundColor(.gray)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ProfileName(pubkey: pubkey, profile: profile, contacts: contacts, show_friend_confirmed: true)
|
HStack {
|
||||||
|
ProfileName(pubkey: pubkey, profile: profile, contacts: contacts, show_friend_confirmed: true)
|
||||||
|
|
||||||
|
KeyView(pubkey: pubkey)
|
||||||
|
.pubkey_context_menu(bech32_pubkey: pubkey)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -110,9 +120,6 @@ struct ProfileView: View {
|
|||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
KeyView(pubkey: profile.pubkey)
|
|
||||||
.pubkey_context_menu(bech32_pubkey: bech32_pubkey(profile.pubkey) ?? profile.pubkey)
|
|
||||||
|
|
||||||
if let lnuri = data?.lightning_uri {
|
if let lnuri = data?.lightning_uri {
|
||||||
LNButton(lnuri)
|
LNButton(lnuri)
|
||||||
}
|
}
|
||||||
@@ -169,7 +176,6 @@ struct ProfileView: View {
|
|||||||
.frame(maxHeight: .infinity, alignment: .topLeading)
|
.frame(maxHeight: .infinity, alignment: .topLeading)
|
||||||
}
|
}
|
||||||
.frame(maxWidth: .infinity, alignment: .topLeading)
|
.frame(maxWidth: .infinity, alignment: .topLeading)
|
||||||
.navigationBarTitle("Profile")
|
|
||||||
.onReceive(handle_notify(.switched_timeline)) { _ in
|
.onReceive(handle_notify(.switched_timeline)) { _ in
|
||||||
dismiss()
|
dismiss()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user