Skip to content

Commit dd97317

Browse files
authored
Fixed the compile warning by switching the the BranchShareLink interface. (#648)
1 parent 546de2f commit dd97317

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Examples/WebViewExample/WebViewExample/ArticleViewController.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ class ArticleViewController: UIViewController, ArticleViewDelegate {
7777
linkProperties.addControlParam("$desktop_url", withValue: planetData.url.absoluteString)
7878
linkProperties.addControlParam("$email_subject", withValue: "The Planet \(planetData.title)")
7979

80-
buo.showShareSheet(with: linkProperties, andShareText: "Read about the planet \(planetData.title).", from: self) {
81-
channel, success in
82-
BNCLog("Share to channel \(channel ?? "(nil)") complete. success = \(success)")
83-
}
80+
let shareLink = BranchShareLink(universalObject: buo, linkProperties: linkProperties)
81+
shareLink?.shareText = "Read about the planet \(planetData.title)."
82+
shareLink?.presentActivityViewController(from: self, anchor: nil)
8483
}
8584

8685
// MARK: - Branch Universal Object setup

0 commit comments

Comments
 (0)