Skip to content

Commit 55e523d

Browse files
committed
Small fix to bottom toolbar setup in PostsPageView to remove top border when using iOS26 with Liquid Glass
1 parent aae8729 commit 55e523d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

App/View Controllers/Posts/PostsPageView.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,13 @@ final class PostsPageView: UIView {
322322
renderView.scrollView.indicatorStyle = theme.scrollIndicatorStyle
323323
renderView.setThemeStylesheet(theme["postsViewCSS"] ?? "")
324324

325-
toolbar.tintColor = Theme.defaultTheme()["toolbarTextColor"]!
326-
toolbar.topBorderColor = Theme.defaultTheme()["bottomBarTopBorderColor"]
327-
toolbar.isTranslucent = Theme.defaultTheme()[bool: "tabBarIsTranslucent"] ?? false
325+
if #available(iOS 26.0, *) {
326+
toolbar.isTranslucent = Theme.defaultTheme()[bool: "tabBarIsTranslucent"] ?? false
327+
} else {
328+
toolbar.tintColor = Theme.defaultTheme()["toolbarTextColor"]!
329+
toolbar.topBorderColor = Theme.defaultTheme()["bottomBarTopBorderColor"]
330+
toolbar.isTranslucent = Theme.defaultTheme()[bool: "tabBarIsTranslucent"] ?? false
331+
}
328332

329333
topBar.themeDidChange(Theme.defaultTheme())
330334
}

0 commit comments

Comments
 (0)