Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Arda Oğul Üçpınar committed Mar 7, 2019
1 parent 686ee3f commit bfebfc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ final class ANActionSheetPresentationController: UIPresentationController {

override func containerViewWillLayoutSubviews() {
var bottomMargin: CGFloat = 8
if let safeBottom = containerView?.safeAreaInsets.bottom, safeBottom > 0 {
bottomMargin = safeBottom
if #available(iOS 11.0, *) {
if let safeBottom = containerView?.safeAreaInsets.bottom, safeBottom > 0 {
bottomMargin = safeBottom
}
} else {
bottomMargin = 0
}

dimmingView.frame = (containerView?.bounds)!
Expand Down

0 comments on commit bfebfc2

Please sign in to comment.