Support custom emojis in field name fix #1474

This commit is contained in:
Thomas Ricouard 2023-07-17 19:46:46 +02:00
parent 9e43dc3f6f
commit 94b642f051

View file

@ -324,8 +324,9 @@ struct AccountDetailHeaderView: View {
ForEach(viewModel.fields) { field in
HStack {
VStack(alignment: .leading, spacing: 2) {
Text(field.name)
.font(.scaledHeadline)
EmojiTextApp(.init(stringValue: field.name), emojis: viewModel.account?.emojis ?? [])
.emojiSize(Font.scaledHeadlineFont.emojiSize)
.emojiBaselineOffset(Font.scaledHeadlineFont.emojiBaselineOffset)
HStack {
if field.verifiedAt != nil {
Image(systemName: "checkmark.seal")