diff --git a/dydx/dydxViews/dydxViews/_v4/Portfolio/Components/Sections/dydxPortfolioFundingView.swift b/dydx/dydxViews/dydxViews/_v4/Portfolio/Components/Sections/dydxPortfolioFundingView.swift index 9c717a54b..f5c05dfcc 100644 --- a/dydx/dydxViews/dydxViews/_v4/Portfolio/Components/Sections/dydxPortfolioFundingView.swift +++ b/dydx/dydxViews/dydxViews/_v4/Portfolio/Components/Sections/dydxPortfolioFundingView.swift @@ -149,8 +149,12 @@ public class dydxPortfolioFundingViewModel: PlatformListViewModel { private let _placeholder = PlaceholderViewModel() - public init() { - super.init() + public init(items: [PlatformViewModel] = [], contentChanged: (() -> Void)? = nil) { + super.init(items: items, + intraItemSeparator: true, + firstListItemTopSeparator: true, + lastListItemBottomSeparator: true, + contentChanged: contentChanged) self.placeholder = _placeholder self.header = createHeader().wrappedViewModel self.width = UIScreen.main.bounds.width - 16 @@ -177,6 +181,7 @@ public class dydxPortfolioFundingViewModel: PlatformListViewModel { Text(DataLocalizer.localize(path: "APP.GENERAL.PRICE_FEE")) } .padding(.horizontal, 16) + .padding(.bottom, 16) .themeFont(fontSize: .small) .themeColor(foreground: .textTertiary) } diff --git a/dydx/dydxViews/dydxViews/_v4/Portfolio/Components/Sections/dydxPortfolioOrdersView.swift b/dydx/dydxViews/dydxViews/_v4/Portfolio/Components/Sections/dydxPortfolioOrdersView.swift index 34c573093..39cbb8af3 100644 --- a/dydx/dydxViews/dydxViews/_v4/Portfolio/Components/Sections/dydxPortfolioOrdersView.swift +++ b/dydx/dydxViews/dydxViews/_v4/Portfolio/Components/Sections/dydxPortfolioOrdersView.swift @@ -131,6 +131,7 @@ public class dydxPortfolioOrderItemViewModel: PlatformViewModel { .frame(width: 42, height: 42) } } + } private func createMain(parentStyle: ThemeStyle) -> some View { @@ -188,8 +189,12 @@ public class dydxPortfolioOrdersViewModel: PlatformListViewModel { private let _placeholder = PlaceholderViewModel() - public init() { - super.init(intraItemSeparator: false) + public init(items: [PlatformViewModel] = [], contentChanged: (() -> Void)? = nil) { + super.init(items: items, + intraItemSeparator: true, + firstListItemTopSeparator: true, + lastListItemBottomSeparator: true, + contentChanged: contentChanged) self.placeholder = _placeholder self.header = createHeader().wrappedViewModel self.width = UIScreen.main.bounds.width - 16 @@ -211,6 +216,7 @@ public class dydxPortfolioOrdersViewModel: PlatformListViewModel { Text(DataLocalizer.localize(path: "APP.GENERAL.PRICE_TYPE")) } .padding(.horizontal, 16) + .padding(.bottom, 16) .themeFont(fontSize: .small) .themeColor(foreground: .textTertiary) }