             })
         )
     }
+
+
+    func requestTrackingAuthorization(completion: @escaping () -> Void) {
+        if #available(iOS 14, *) {
+            ATTrackingManager.requestTrackingAuthorization { _ in
+                DispatchQueue.main.async {
+                    completion()
+                }
+            }
+        } else {
+            completion()
+        }
+    }
 }

import UIKit
import SpriteKit

extension Notification.Name {
    static let adConsentStatusDidChange = Notification.Name("AdConsentStatusDidChange")

                .resetOnLaunch(geography: geography)
            let demoSelectionViewController = DemoSelectionViewController(swiftyAds: self.swiftyAds, consentConfiguration: consentConfiguration)
            navigationController.setViewControllers([demoSelectionViewController], animated: true)

            if geography == .disabled {
                self.requestTrackingAuthorization {
                    self.configureSwiftyAds(from: navigationController, consentConfiguration: consentConfiguration)
                }
            } else {
                self.configureSwiftyAds(from: navigationController, consentConfiguration: consentConfiguration)
            }
        }

        navigationController.setViewControllers([consentSelectionViewController], animated: false)
