Showing
2 changed files
with
2 additions
and
1 deletions
@@ -197,7 +197,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | @@ -197,7 +197,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | ||
197 | return | 197 | return |
198 | } | 198 | } |
199 | 199 | ||
200 | - let activityViewController = UIActivityViewController(activityItems: [fileURL, body], applicationActivities: nil) | 200 | + let activityViewController = UIActivityViewController(activityItems: [fileURL, body as Any], applicationActivities: nil) |
201 | activityViewController.setValue(subject, forKey: "subject") | 201 | activityViewController.setValue(subject, forKey: "subject") |
202 | if UI_USER_INTERFACE_IDIOM() == .pad { | 202 | if UI_USER_INTERFACE_IDIOM() == .pad { |
203 | let controller: UIViewController? = UIApplication.shared.keyWindow?.rootViewController | 203 | let controller: UIViewController? = UIApplication.shared.keyWindow?.rootViewController |
-
Please register or login to post a comment