Skip to content

Commit e4599a5

Browse files
author
Martin Barreto
authored
Merge pull request #111 from dmorrow/include-bottom-safeAreaInsets-for-iPhone-X-size-devices
Include bottom safeAreaInsets for iPhone X size devices
2 parents bc45204 + 210653a commit e4599a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/ActionController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ open class ActionController<ActionViewType: UICollectionViewCell, ActionDataType
604604
open func performCustomDismissingAnimation(_ presentedView: UIView, presentingView: UIView) {
605605
backgroundView.alpha = 0.0
606606
cancelView?.frame.origin.y = view.bounds.size.height
607-
collectionView.frame.origin.y = contentHeight + (settings.cancelView.showCancel ? settings.cancelView.height : 0) + settings.animation.dismiss.offset
607+
collectionView.frame.origin.y = contentHeight + (settings.cancelView.showCancel ? settings.cancelView.height : 0) + settings.animation.dismiss.offset + safeAreaInsets.bottom
608608
// Override this to add custom animations. This method is performed within the presentation animation block
609609
}
610610

0 commit comments

Comments
 (0)