Skip to content

Commit

Permalink
Remove check for iOS 11 since we now support minimum iOS 14
Browse files Browse the repository at this point in the history
  • Loading branch information
levieggertcru committed Oct 23, 2024
1 parent fd6b918 commit b1927a5
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,9 @@ class MobileContentPagesView: AppViewController {
return
}
didLayoutSubviews = true

var safeAreaTopInset: CGFloat
let safeAreaBottomInset: CGFloat

if #available(iOS 11.0, *) {
safeAreaTopInset = view.safeAreaInsets.top
safeAreaBottomInset = view.safeAreaInsets.bottom
} else {
safeAreaTopInset = topLayoutGuide.length
safeAreaBottomInset = bottomLayoutGuide.length
}

var safeAreaTopInset: CGFloat = view.safeAreaInsets.top
let safeAreaBottomInset: CGFloat = view.safeAreaInsets.bottom

if safeAreaTopInset == 0 {
safeAreaTopInset = safeAreaView.convert(.zero, to: nil).y
Expand Down

0 comments on commit b1927a5

Please sign in to comment.