-2

How to import twitterkit into swift? I have tried :

"#import < TwitterKit/TWTRKit.h>"

But that doesn't allow function calls.

Jeeves
  • 424
  • 1
  • 7
  • 25
  • Have you tried just `import TwitterKit`? – Will Mar 04 '18 at 03:21
  • The `#import` directive is for Objective-C. Why would you use it in Swift? – Cristik Mar 04 '18 at 20:30
  • I have that line : import TwitterKit Compiler still says Use of" Unresolved identifier "-->Did you mean TWRTweetView' The install page talks about a bridging header, but no pop-up in xcode shows up when importing TwitterKit – Jeeves Mar 05 '18 at 07:38

1 Answers1

-1

TwitterKit can be imported with

import TwitterKit

I've tested this

import UIKit
import TwitterKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

}
Will
  • 4,942
  • 2
  • 22
  • 47