Skip to content

Commit

Permalink
Merge pull request #111 from dmorrow/include-bottom-safeAreaInsets-fo…
Browse files Browse the repository at this point in the history
…r-iPhone-X-size-devices

Include bottom safeAreaInsets for iPhone X size devices
  • Loading branch information
Martin Barreto committed Dec 19, 2018
2 parents bc45204 + 210653a commit e4599a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ActionController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ open class ActionController<ActionViewType: UICollectionViewCell, ActionDataType
open func performCustomDismissingAnimation(_ presentedView: UIView, presentingView: UIView) {
backgroundView.alpha = 0.0
cancelView?.frame.origin.y = view.bounds.size.height
collectionView.frame.origin.y = contentHeight + (settings.cancelView.showCancel ? settings.cancelView.height : 0) + settings.animation.dismiss.offset
collectionView.frame.origin.y = contentHeight + (settings.cancelView.showCancel ? settings.cancelView.height : 0) + settings.animation.dismiss.offset + safeAreaInsets.bottom
// Override this to add custom animations. This method is performed within the presentation animation block
}

Expand Down

0 comments on commit e4599a5

Please sign in to comment.