mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-11 16:45:27 +00:00
parent
f04c15b8fe
commit
c9e542a2ed
1 changed files with 17 additions and 12 deletions
|
@ -40,15 +40,13 @@ public struct AccountDetailView: View {
|
|||
public var body: some View {
|
||||
ScrollViewReader { proxy in
|
||||
List {
|
||||
Group {
|
||||
makeHeaderView(proxy: proxy)
|
||||
.applyAccountDetailsRowStyle(theme: theme)
|
||||
.padding(.bottom, -20)
|
||||
familiarFollowers
|
||||
.applyAccountDetailsRowStyle(theme: theme)
|
||||
featuredTagsView
|
||||
}
|
||||
.listRowInsets(.init())
|
||||
.listRowSeparator(.hidden)
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
.applyAccountDetailsRowStyle(theme: theme)
|
||||
|
||||
Picker("", selection: $viewModel.selectedTab) {
|
||||
ForEach(isCurrentUser ? AccountDetailViewModel.Tab.currentAccountTabs : AccountDetailViewModel.Tab.accountTabs,
|
||||
|
@ -59,9 +57,7 @@ public struct AccountDetailView: View {
|
|||
}
|
||||
.pickerStyle(.segmented)
|
||||
.padding(.layoutPadding)
|
||||
.listRowSeparator(.hidden)
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
.listRowInsets(.init())
|
||||
.applyAccountDetailsRowStyle(theme: theme)
|
||||
.id("status")
|
||||
|
||||
switch viewModel.tabState {
|
||||
|
@ -487,6 +483,15 @@ public struct AccountDetailView: View {
|
|||
}
|
||||
}
|
||||
|
||||
private extension View {
|
||||
func applyAccountDetailsRowStyle(theme: Theme) -> some View {
|
||||
self
|
||||
.listRowInsets(.init())
|
||||
.listRowSeparator(.hidden)
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
}
|
||||
}
|
||||
|
||||
struct AccountDetailView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
AccountDetailView(account: .placeholder())
|
||||
|
|
Loading…
Reference in a new issue