diff --git a/Packages/Account/Sources/Account/AccountDetailHeaderView.swift b/Packages/Account/Sources/Account/AccountDetailHeaderView.swift index 8ff8c086..bf94c46b 100644 --- a/Packages/Account/Sources/Account/AccountDetailHeaderView.swift +++ b/Packages/Account/Sources/Account/AccountDetailHeaderView.swift @@ -23,11 +23,22 @@ struct AccountDetailHeaderView: View { var body: some View { VStack(alignment: .leading) { - Rectangle() - .frame(height: Constants.headerHeight) - .overlay { - headerImageView + ZStack(alignment: .bottomTrailing) { + Rectangle() + .frame(height: Constants.headerHeight) + .overlay { + headerImageView + } + if viewModel.relationship?.followedBy == true { + Text("account.relation.follows-you") + .font(.scaledFootnote) + .fontWeight(.semibold) + .padding(4) + .background(.ultraThinMaterial) + .cornerRadius(4) + .padding(8) } + } accountInfoView } } @@ -58,16 +69,6 @@ struct AccountDetailHeaderView: View { } .frame(height: Constants.headerHeight) } - - if viewModel.relationship?.followedBy == true { - Text("account.relation.follows-you") - .font(.scaledFootnote) - .fontWeight(.semibold) - .padding(4) - .background(.ultraThinMaterial) - .cornerRadius(4) - .padding(8) - } } .background(theme.secondaryBackgroundColor) .frame(height: Constants.headerHeight)