Skip to content

Commit

Permalink
fix dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
hukjordanjanaq committed Oct 19, 2021
1 parent 71aee8e commit 7493bff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ios/Classes/SwiftFlutterShareMePlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,13 @@ public class SwiftFlutterShareMePlugin: NSObject, FlutterPlugin, SharingDelegate

func sharefacebook(message:Dictionary<String,Any>, result: @escaping FlutterResult) {
let viewController = UIApplication.shared.delegate?.window??.rootViewController
let shareDialog = ShareDialog()
//let shareDialog = ShareDialog()
let shareContent = ShareLinkContent()
shareContent.contentURL = URL.init(string: message["url"] as! String)!
shareContent.quote = message["msg"] as? String

let shareDialog = ShareDialog(viewController: viewController, content: shareContent, delegate: self).show()
shareDialog.mode = .automatic
ShareDialog(viewController: viewController, content: shareContent, delegate: self).show()
result("Sucess")

}
Expand Down

0 comments on commit 7493bff

Please sign in to comment.