Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2022-03-29 10:45:09 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
90e04a04d949881fd4a05a89e4edd8d9699bda27
90e04a04
1 parent
bcc07a34
Fix Xcode 13.3 out of memory issue
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
printing/CHANGELOG.md
printing/ios/Classes/PrintJob.swift
printing/CHANGELOG.md
View file @
90e04a0
...
...
@@ -3,6 +3,7 @@
## 5.7.5
-
Update SWIFT code formatter to version 5
-
Fix Xcode 13.3 out of memory issue
## 5.7.4
...
...
printing/ios/Classes/PrintJob.swift
View file @
90e04a0
...
...
@@ -206,7 +206,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate
let
activityViewController
=
UIActivityViewController
(
activityItems
:
[
fileURL
,
body
as
Any
],
applicationActivities
:
nil
)
activityViewController
.
setValue
(
subject
,
forKey
:
"subject"
)
if
UI
_USER_INTERFACE_IDIOM
()
==
.
pad
{
if
UI
Device
.
current
.
userInterfaceIdiom
==
.
pad
{
let
controller
:
UIViewController
?
=
UIApplication
.
shared
.
keyWindow
?
.
rootViewController
activityViewController
.
popoverPresentationController
?
.
sourceView
=
controller
?
.
view
activityViewController
.
popoverPresentationController
?
.
sourceRect
=
rect
...
...
@@ -290,7 +290,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate
result
(
data
)
}
if
UI
_USER_INTERFACE_IDIOM
()
==
.
pad
{
if
UI
Device
.
current
.
userInterfaceIdiom
==
.
pad
{
let
viewController
:
UIViewController
?
=
UIApplication
.
shared
.
keyWindow
?
.
rootViewController
if
viewController
!=
nil
{
controller
.
present
(
from
:
rect
,
in
:
viewController
!.
view
,
animated
:
true
,
completionHandler
:
pickPrinterCompletionHandler
)
...
...
Please
register
or
login
to post a comment