Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI layout fixes, improved flexibility, Swift 4.2 and more #94

Open
wants to merge 97 commits into
base: master
Choose a base branch
from

Conversation

rivera-ernesto
Copy link

@rivera-ernesto rivera-ernesto commented Dec 21, 2018

• All changes from #83.
• Allow setting UXMPDFViewController’s document after loading its view.
• Make UXMPDFViewController’s collectionView and pageScrubber optionals only loaded after document is set.
• Update to Swift 4.2.
• Fix UXMThumbnailView layout.
• Fix page number positioning.
• New optional autoHidePageNumberTimeInterval.
• Make autoSaveAction optional.
• Make sure to call finishAnnotation() before showActivitySheet().
• Refactor saveToPDFFile with optional overwriteOriginal parameter.
• Use adjustedContentInset to fix collection view layout warnings.
• Call setNeedsLayout() instead of the not recommended layoutSubviews().
• Cleanup Example project.
• Prevent crash when pdfDocRef's info is nil(#89).

Anyone can give it a try using pod 'UXMPDFKit', :git => 'https://github.com/codelathe/UXMPDFKit.git'.

pushchris and others added 30 commits August 28, 2017 19:12
That is, it should not assume that the Pen tool
is button index 1. It should find it by type or
assert otherwise.
That is, when disappearing from the view, the settor
of that closure could infer from the passed
PDFAnnotationController whether there are things
to save, and if so, decide where/what to do or
just ignore etc.

Default behaviour is as before, just assigns the
annotations out of the annotationController to the
PDFDocument itself, then call save() on that
document to archiveRootObject.
In PDFAnnotationController, and PDFAnnotationStore
Default does what it always does, calls
  dismiss(animated: true, completion: nil)
start up a new annotation after undoing one
better pen width and better undo functionality
- undo should still be enabled if you start an empty annotation while there are annotations in the store
…nailViewController collection view spacing added between lines
geankozen and others added 9 commits January 14, 2019 13:08
Merge in diegostamigni master branch
# Conflicts:
#	Example/Pods/Pods.xcodeproj/project.pbxproj
#	Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata
#	Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/UXMPDFKit.xcscheme
#	Example/UXMPDFKit.xcodeproj/project.pbxproj
#	Example/UXMPDFKit.xcodeproj/xcshareddata/xcschemes/UXMPDFKit-Example.xcscheme
#	Example/UXMPDFKit/AppDelegate.swift
#	Pod/Classes/Annotations/UXMAnnotationController.swift
#	Pod/Classes/Annotations/UXMTextAnnotation.swift
#	Pod/Classes/Form/UXMFormButtonField.swift
#	Pod/Classes/Form/UXMFormSignatureField.swift
#	Pod/Classes/Form/UXMFormTextField.swift
#	Pod/Classes/Model/UXMAction.swift
#	Pod/Classes/Renderer/PDFThumbnailView.swift
#	Pod/Classes/Renderer/UXMPDFViewController.swift
#	Pod/Classes/Renderer/UXMPageContentView.swift
#	Pod/Classes/Renderer/UXMPageScrubber.swift
#	Pod/Classes/Renderer/UXMSnapshotCache.swift
#	Pod/Classes/Renderer/UXMThumbnailViewController.swift
#	Pod/Classes/View/UXMBarButton.swift
#	UXMPDFKit.podspec
@rivera-ernesto
Copy link
Author

Updated PR.

@rivera-ernesto
Copy link
Author

Added lots of crash fixes as we stress the library with our FileCloud app's 10k+ users.

@ahelen
Copy link

ahelen commented Aug 26, 2019

Hi, when will this request be merged so its possible to use version 0.7.3?

@rivera-ernesto
Copy link
Author

Hi, when will this request be merged so its possible to use version 0.7.3?

You can use the fork in the mean time. See the PR description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants