UtterKit
public class UtterKit
The UtterKit class provides a few top-level features of the framework. In particular, it provides 1) a method to authenticate an app to Twitter using previously-obtained keys and 2) support for creating and using canned Tweets to facilitate debugging, or if you do not have keys.
-
Authenticate program to the Twitter services using keys generated at http://apps.twitter.com.
This should be called by the App Delegate when launching is complete.
Declaration
Swift
public static func start(withConsumerKey key: String? = nil, consumerSecret secret: String? = nil)
Parameters
key
The consumer key, provided by Twitter, or nil to use the canned data
secret
The private key, provided by Twitter, or nil to use the canned data
-
Create fake tweet data that you can use to test your UI and in unit tests. The data is in the FakeTweets.json file in the UtterKit directory.
Declaration
Swift
public static func createFakeTweets() -> [Tweet]