Trouble implementing TwitterKit & Fabric into my Swift project

ios
swift

#1

I’m attempting to display a Twitter Timeline in my app of a single user but am hitting a roadblock. In their Demo app, it appears that the setup is easy enough, however, I can’t seem to get it working. My app only seem to display a blank screen.

Here is their demo app code:


LoginViewController.swift

import UIKit
import TwitterKit

class LoginViewController: UIViewController {

    @IBAction func showTweetsTapped(sender: AnyObject) {
        Twitter.sharedInstance().logInGuestWithCompletion { guestSession, error in
            if (guestSession != nil) {
                self.performSegueWithIdentifier("segueShowTweets", sender: self)
            } else {
                println("error: \(error.localizedDescription)");
            }
        }
    }

}

ViewController.swift

import UIKit
import TwitterKit

class ViewController: TWTRTimelineViewController {
    
    override func awakeFromNib() {
        let client = Twitter.sharedInstance().APIClient
        self.dataSource = TWTRUserTimelineDataSource(screenName: "fabric", APIClient: client)
    }
    
}

You can take a peak at the Swift source code here.


Here is my code:


ViewController.swift

import UIKit
import TwitterKit

class SocialViewController: TWTRTimelineViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let client = Twitter.sharedInstance().APIClient
        self.dataSource = TWTRUserTimelineDataSource(screenName: "fabric", APIClient: client)
    }
}

#2