Skip to content

Commit 5f8e4df

Browse files
authored
Merge pull request #1098 from kiwix/1097-fix-bottom-toolbar-on-ipad-in-slide-over-mode
Fix iPad split mode scroll to appear bottom bar
2 parents 42a29b2 + b28501b commit 5f8e4df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Views/BuildingBlocks/WebView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ extension WebViewController: UIScrollViewDelegate {
164164

165165
func showBars(on navigationController: UINavigationController) {
166166
navigationController.setNavigationBarHidden(false, animated: true)
167-
if Device.current == .iPhone {
167+
if traitCollection.horizontalSizeClass == .compact {
168168
navigationController.setToolbarHidden(false, animated: true)
169169
}
170170
}

0 commit comments

Comments
 (0)