Fixed account title
This commit is contained in:
parent
193469fbc0
commit
0423351f5d
|
@ -94,11 +94,16 @@ public struct AccountDetailView: View {
|
|||
.edgesIgnoringSafeArea(.top)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .principal) {
|
||||
if scrollOffset < -200 {
|
||||
currentAccount.account?.displayNameWithEmojis
|
||||
}
|
||||
ToolbarItem(placement: .principal) {
|
||||
if scrollOffset < -200 {
|
||||
switch viewModel.accountState {
|
||||
case let .data(account):
|
||||
account.displayNameWithEmojis.font(.headline)
|
||||
default:
|
||||
EmptyView()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue