I want to complete the request method similar to Attrackingmanager in swiftui.
Can I complete the Attrackingmanager request in swiftui without using OC bridging?
I want to complete the request method similar to Attrackingmanager in swiftui.
Can I complete the Attrackingmanager request in swiftui without using OC bridging?
Demo-Bridging-Header.h
#import <AppTrackingTransparency/AppTrackingTransparency.h>
Model.h
if ATTrackingManager.trackingAuthorizationStatus == .notDetermined || ATTrackingManager.trackingAuthorizationStatus == .denied { ATTrackingManager.requestTrackingAuthorization { status in .... } }
How to implement the above mentioned in SwiftUI?