TwitterKit не может быть перенаправлен в моем приложении.
1. Info.Plist Добавлены строки
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>twitterkit-{your consumer key}</string>
</array>
</dict>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>twitter</string>
<string>twitterauth</string>
</array>
2. Делегат приложения
import TwitterKit
application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
Twitter.sharedInstance().start(withConsumerKey:consumer_key, consumerSecret:consumer_secret)
}
application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
if Twitter.sharedInstance().application(app, open: url, options: options) {
return true
}
return false
}
3. LoginScreen
func twitter(){
TWTRTwitter.sharedInstance().logIn(with: self, completion: { (session, error) in
--
})
}
Может кто-нибудь показать мне, где я иду не так?