Demo project for fixing PresentingViewController error
This error can be fixed with a solution developed by @jeroldalbertson-wf . This solution includes changes the assignment of the rootViewController in AppAuthIOSAuthorization.m performAuthorization and performEndSessionRequest to:
UIViewController *rootViewController;
if (@available(iOS 13, *)) {
rootViewController = [[UIApplication sharedApplication].windows filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(id window, NSDictionary *bindings) {
return [window isKeyWindow];
}]].firstObject.rootViewController;
} else {
rootViewController = [UIApplication sharedApplication].delegate.window.rootViewController;
}