TF-851 [iOS] Share image with TMail app

This commit is contained in:
ManhNTX
2022-08-29 05:41:18 +07:00
committed by Dat H. Pham
parent 63e444d1dc
commit f8b5ddc227
7 changed files with 23 additions and 16 deletions
@@ -5,7 +5,7 @@ import Photos
class ShareViewController: SLComposeServiceViewController {
var hostAppBundleIdentifier = ""
var appGroupId = ""
let appGroupId = "group.com.linagora.teammail"
let sharedKey = "ShareKey"
var sharedMedia: [SharedMediaFile] = []
var sharedText: [String] = []
@@ -27,9 +27,6 @@ class ShareViewController: SLComposeServiceViewController {
// For example: com.test.ShareExtension -> com.test
let lastIndexOfPoint = shareExtensionAppBundleIdentifier.lastIndex(of: ".");
hostAppBundleIdentifier = String(shareExtensionAppBundleIdentifier[..<lastIndexOfPoint!]);
// loading custom AppGroupId from Build Settings or use group.<hostAppBundleIdentifier>
appGroupId = (Bundle.main.object(forInfoDictionaryKey: "AppGroupId") as? String) ?? "group.\(hostAppBundleIdentifier)";
}