The code is from your link.
Here is the code
// UserTimelineViewController.swift
import UIKit
import TwitterKit
class UserTimelineViewController: TWTRTimelineViewController {
convenience init() {
let client = Twitter.sharedInstance().APIClient
let dataSource = TWTRUserTimelineDataSource(screenName: "fabric", APIClient: client)
self.init(dataSource: dataSource)
}
override required init(dataSource: TWTRTimelineDataSource) {
super.init(dataSource: dataSource)
}
required init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
And I have an error under TWTRTimelineViewController and the error is Use of undeclared type "TWTRTimelineViewController"
Also under TWTRUserTimelineDataSource(screenName: "fabric", APIClient: client) and the error is Use of unresolved identifier "TWTRUserTimelineDataSource"
And under required init(dataSource: TWTRTimelineDataSource)
I have a "Use of undeclared type "TWTRTimelineDataSource"
Here is a screenshot,
Thank you in advance for your help.