Ask for user Twitter mail with TWTRShareEmailViewController (Fabric Twitter SDK) in Swift
问题 I'd like to request the user's Twitter mail. On https://dev.twitter.com/twitter-kit/ios/request-email we can see the code in Obj-C but I need it in Swift and I can't translate it. Does anyone know how, please? Here's the Obj-C code: if ([[Twitter sharedInstance] session]) { TWTRShareEmailViewController* shareEmailViewController = [[TWTRShareEmailViewController alloc] initWithCompletion:^(NSString* email, NSError* error) { NSLog(@"Email %@, Error: %@", email, error); }]; [self