Fixed account title

This commit is contained in:
Thomas Ricouard 2022-12-30 22:55:24 +01:00
parent 193469fbc0
commit 0423351f5d

View file

@ -94,11 +94,16 @@ public struct AccountDetailView: View {
.edgesIgnoringSafeArea(.top) .edgesIgnoringSafeArea(.top)
.navigationBarTitleDisplayMode(.inline) .navigationBarTitleDisplayMode(.inline)
.toolbar { .toolbar {
ToolbarItem(placement: .principal) { ToolbarItem(placement: .principal) {
if scrollOffset < -200 { if scrollOffset < -200 {
currentAccount.account?.displayNameWithEmojis switch viewModel.accountState {
} case let .data(account):
account.displayNameWithEmojis.font(.headline)
default:
EmptyView()
}
} }
}
} }
} }