[self dismissViewControllerAnimated:YES completion:^{
NSLog(@"Dismissed");
}];
After this executes, the screen goes blank in black color. WHen I changed to
dismissViewControllerAnimated:NO then the initial view controller gets presented properly.
This happened in iOS 13 beta simulator of iPhone XR.