Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion PanModal/Controller/PanModalPresentationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,11 @@ private extension PanModalPresentationController {
Set the appropriate contentInset as the configuration within this class
offsets it
*/
scrollView.contentInset.bottom = presentingViewController.bottomLayoutGuide.length
if #available(iOS 11.0, *) {
scrollView.contentInset.bottom = presentingViewController.view.safeAreaInsets.bottom
} else {
scrollView.contentInset.bottom = presentingViewController.bottomLayoutGuide.length
}

/**
As we adjust the bounds during `handleScrollViewTopBounce`
Expand Down