From 188b51b293990a6fb5c3cfbdc6405c5d836d61bc Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 11 Oct 2022 13:13:49 +0800 Subject: [PATCH] Fix the spacing on top of the library list On iPad the navigation bar size was set too larger without specifying inline. Without the spacer we get some re-layout glitches after loading completes. --- .../Sources/App/Views/Home/HomeFeedViewIOS.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift index 965acc0d4..e6a508038 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift @@ -67,6 +67,7 @@ import Views .sheet(item: $viewModel.itemForHighlightsView) { item in HighlightsListView(itemObjectID: item.objectID, hasHighlightMutations: $hasHighlightMutations) } + .navigationBarTitleDisplayMode(.inline) .toolbar { ToolbarItem(placement: .barLeading) { Image.smallOmnivoreLogo @@ -274,10 +275,13 @@ import Views ) { EmptyView() } - VStack { + VStack(spacing: 0) { if viewModel.showLoadingBar { ShimmeringLoader() + } else { + Spacer(minLength: 2) } + List { if viewModel.items.count > 0 || viewModel.searchTerm.count > 0 { filtersHeader