var body: some Scene {
WindowGroup {
VStack{
ContentView()
}
.onAppear {
Task {
do {
try await center.requestAuthorization(for: .individual)
} catch {
print("Failed to enroll with error: \(error.localizedDescription)")
}
}
}
}
}
This is the authorization code I am using.
Topic:
App & System Services
SubTopic:
General
Tags: