mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-06-07 14:28:50 +00:00
Fixed account title
This commit is contained in:
parent
193469fbc0
commit
0423351f5d
1 changed files with 9 additions and 4 deletions
|
@ -96,7 +96,12 @@ public struct AccountDetailView: View {
|
||||||
.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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue