Skip to content

Commit 6538ecc

Browse files
jcesarmobiledistante
authored andcommitted
refactor(ios): Remove iOS 11 code check in BannerExecutor.swift
1 parent 421a34e commit 6538ecc

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ios/Sources/AdMobPlugin/Banner/BannerExecutor.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ class BannerExecutor: NSObject, BannerViewDelegate {
4040
let frame = { () -> CGRect in
4141
// Here safe area is taken into account, hence the view frame is used
4242
// after the view has been laid out.
43-
if #available(iOS 11.0, *) {
44-
return rootViewController.view.frame.inset(by: rootViewController.view.safeAreaInsets)
45-
} else {
46-
return rootViewController.view.frame
47-
}
43+
return rootViewController.view.frame.inset(by: rootViewController.view.safeAreaInsets)
4844
}()
4945
let viewWidth = frame.size.width
5046
bannerSize = currentOrientationAnchoredAdaptiveBanner(width: viewWidth)

0 commit comments

Comments
 (0)