我正在使用 TwiterKit 3.0 框架。我正在使用 Deeplink 为我的应用程序分享一条推文。但问题是它呈现了一个新的 viewController 并显示了 twitter 对话框。但我的要求是需要像在照片应用程序共享屏幕中一样共享。
if let deepLinkurl = branchObject.getShortUrl(with: shareLinkProperties) {
let composer = TWTRComposer()
composer.setURL(URL(string: deepLinkURL))
composer.show(from: self) { result in
if (result == TWTRComposerResult.cancelled) {
print("Tweet composition cancelled")
}
}