Skip to content

Instantly share code, notes, and snippets.

View coma-toast's full-sized avatar
🕶️
Working from work

Jason Dale coma-toast

🕶️
Working from work
View GitHub Profile
@MichaelBarney
MichaelBarney / SwiftUI_Ad_Banner.swift
Last active March 15, 2022 03:45
A google AdMob Banner implementation in SwiftUI
import SwiftUI
import GoogleMobileAds
import UIKit
final private class BannerVC: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> UIViewController {
let view = GADBannerView(adSize: kGADAdSizeBanner)
let viewController = UIViewController()