I am trying translate the objective c code bellow to swift, i did so far but i get some error.. any help appreciate.
dispatch_async(dispatch_get_main_queue(), ^{
[self.window.rootViewController presentViewController:self.incomingCall animated:YES completion:nil];
in swift version i did in this way but i get an error :
dispatch_async(dispatch_get_main_queue(), { () -> Void in
// Show the alert
self.window?.rootViewController?.present(self.iincomingCall(), animated: true, completion: nil)
})