Asynchronous_Operations
Asynchronous Operations
Code
Objective C - call present with completion Handler.
- (void)presentWithCompletion:(void (^)(BOOL success))completion;
Swift has two ways to do this async operation
func present(completion: ((Bool) -> Void)? = nil)
func present() async -> Bool
Reference
apple dev | calling objC api async