Post

Replies

Boosts

Views

Activity

Wait for OSSystemExtensionManager request
I write an app to detect whether the specific system extension existed. At the init() stage of the SwiftUI view, it will submit the request to get whether the specific system extension existed. OSSystemExtensionManager.shared.submitRequest(request) and receive the request using func request(_ request: OSSystemExtensionRequest, foundProperties properties: [OSSystemExtensionProperties]) then display the result. However, submitting request is a asynchronous process, I will get the result Not Found before receiving the request. Is there any way to wait for OSSystemExtensionManager.shared.submitRequest(request) until it finishes its request?
1
0
455
Dec ’23