diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift index 9aa82ee9a..9ca04870d 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift @@ -7,30 +7,6 @@ import Utils import Views #if os(iOS) - struct CompactHomeView: View { - @ObservedObject var viewModel: HomeFeedViewModel - - var body: some View { - NavigationView { - HomeFeedContainerView(isCompact: true, viewModel: viewModel) - .toolbar { - ToolbarItem { - NavigationLink( - destination: { ProfileView() }, - label: { - Image.profile - .resizable() - .frame(width: 26, height: 26) - .padding() - } - ) - } - } - } - .accentColor(.appGrayTextContrast) - } - } - struct HomeFeedContainerView: View { let isCompact: Bool @EnvironmentObject var dataService: DataService diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HomeView.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HomeView.swift index 701814b53..0a49242b4 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Home/HomeView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HomeView.swift @@ -6,7 +6,23 @@ struct HomeView: View { var body: some View { #if os(iOS) if UIDevice.isIPhone { - CompactHomeView(viewModel: viewModel) + NavigationView { + HomeFeedContainerView(isCompact: true, viewModel: viewModel) + .toolbar { + ToolbarItem { + NavigationLink( + destination: { ProfileView() }, + label: { + Image.profile + .resizable() + .frame(width: 26, height: 26) + .padding() + } + ) + } + } + } + .accentColor(.appGrayTextContrast) } else { HomeFeedContainerView(isCompact: false, viewModel: viewModel) }