Hey there @bonnel,
Thanks for your reply. Allow me to be more clear, given the following sample code snippet:
[[Twitter sharedInstance] logInWithCompletion:^(TWTRSession * _Nullable session, NSError * _Nullable error) {
if (!error) {
if (session) {
TWTRAPIClient *client = [[TWTRAPIClient alloc] initWithUserID:session.userID];
[client loadUserWithID:client.userID completion:^(TWTRUser * _Nullable user, NSError * _Nullable error) {
.
.
.
The completion handler for - [TWTRAPIClient loadUserWithID…] will then attempt to fetch the user’s email by presenting an instance of TWTRShareEmailViewController.
So, the issue is either the completion handler from [[Twitter sharedInstance] logInWithCompletion…] or [TWTRAPIClient loadUserWithID…] is called before the dismissal animation completes for the view controller(s) that were previously presented internally by TwitterKit after a user logs in via a web view.
I am using TwitterKit v1.12.1