Improved stretchy account header (#518)
This commit is contained in:
parent
aff0c943f8
commit
d9546d92d9
|
@ -25,7 +25,11 @@ struct AccountDetailHeaderView: View {
|
|||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading) {
|
||||
headerImageView
|
||||
Rectangle()
|
||||
.frame(height: 200)
|
||||
.overlay {
|
||||
headerImageView
|
||||
}
|
||||
accountInfoView
|
||||
}
|
||||
}
|
||||
|
|
|
@ -347,7 +347,7 @@ public struct AccountDetailView: View {
|
|||
@ToolbarContentBuilder
|
||||
private var toolbarContent: some ToolbarContent {
|
||||
ToolbarItem(placement: .principal) {
|
||||
if scrollOffset < -200 {
|
||||
if scrollOffset < -170 {
|
||||
switch viewModel.accountState {
|
||||
case let .data(account):
|
||||
EmojiTextApp(.init(stringValue: account.safeDisplayName), emojis: account.emojis)
|
||||
|
@ -531,7 +531,7 @@ public struct AccountDetailView: View {
|
|||
}
|
||||
}
|
||||
} label: {
|
||||
if scrollOffset < -40 {
|
||||
if scrollOffset < -5 {
|
||||
Image(systemName: "ellipsis.circle")
|
||||
} else {
|
||||
Image(systemName: "ellipsis.circle.fill")
|
||||
|
|
Loading…
Reference in New Issue