|
@@ -102,7 +102,9 @@ extension ShareCommunityContentView: UICollectionViewDelegateFlowLayout,UICollec
|
|
|
if image != nil {
|
|
|
UMManager.shared.shareImage(to: UMSocialPlatformType.wechatSession, viewController: findViewController(), thumbImage: image as Any, shareImage: image as Any) {
|
|
|
[weak self] in
|
|
|
- self?.completion!()
|
|
|
+ if let completion = self?.completion {
|
|
|
+ completion()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if imageUrl != nil {
|
|
@@ -115,7 +117,9 @@ extension ShareCommunityContentView: UICollectionViewDelegateFlowLayout,UICollec
|
|
|
if image != nil {
|
|
|
UMManager.shared.shareImage(to: UMSocialPlatformType.wechatSession, viewController: findViewController(), thumbImage: image as Any, shareImage: image as Any) {
|
|
|
[weak self] in
|
|
|
- self?.completion!()
|
|
|
+ if let completion = self?.completion {
|
|
|
+ completion()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if imageUrl != nil {
|
|
@@ -127,7 +131,9 @@ extension ShareCommunityContentView: UICollectionViewDelegateFlowLayout,UICollec
|
|
|
if image != nil {
|
|
|
UMManager.shared.shareImage(to: UMSocialPlatformType.QQ, viewController: findViewController(), thumbImage: image as Any, shareImage: image as Any) {
|
|
|
[weak self] in
|
|
|
- self?.completion!()
|
|
|
+ if let completion = self?.completion {
|
|
|
+ completion()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if imageUrl != nil {
|
|
@@ -141,7 +147,9 @@ extension ShareCommunityContentView: UICollectionViewDelegateFlowLayout,UICollec
|
|
|
if image != nil {
|
|
|
UMManager.shared.shareImage(to: UMSocialPlatformType.sina, viewController: findViewController(), thumbImage: image as Any, shareImage: image as Any) {
|
|
|
[weak self] in
|
|
|
- self?.completion!()
|
|
|
+ if let completion = self?.completion {
|
|
|
+ completion()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if imageUrl != nil {
|