Skip to content

Commit

Permalink
Fix iOS 18 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DelphiWorlds committed Sep 28, 2024
1 parent 792e6b4 commit 31fb83b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Controls/DW.AdMobBannerAd.iOS.pas
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ constructor TiOSAdMobBannerAd.Create;
LConstraint: NSLayoutConstraint;
begin
inherited;
FBannerView := TGADBannerView.Create;
FBannerView.initWithAdSize(GADAdSizeFromCGSize(CGSizeMake(0, 0)));
FBannerView := TGADBannerView.Wrap(TGADBannerView.Alloc.initWithAdSize(GADAdSizeFromCGSize(CGSizeMake(0, 0))));
FBannerView.setTranslatesAutoresizingMaskIntoConstraints(False);
FDelegate := TGADBannerViewDelegate.Create(Self);
FBannerView.setDelegate(FDelegate.GetObjectID);
Expand Down

0 comments on commit 31fb83b

Please sign in to comment.