https://github.com/dev1an/pdfkit-bug
Annoying insert page bug in iOS
https://github.com/dev1an/pdfkit-bug
Last synced: about 2 months ago
JSON representation
Annoying insert page bug in iOS
- Host: GitHub
- URL: https://github.com/dev1an/pdfkit-bug
- Owner: Dev1an
- Created: 2017-11-29T12:44:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-29T13:25:16.000Z (over 8 years ago)
- Last Synced: 2025-01-21T13:09:31.818Z (over 1 year ago)
- Language: Swift
- Size: 9.89 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PDFKit bug

## Description
When a PDFDocument is presented by a PDFView and a PDFPage (containing a UIImage) is inserted programatically, the view is updated to show the new page in the document but the page is inserted upside-down in the bottom right corner and scrolling through the document suddenly becomes impossible.
## Reproduction
*— On a macOS device —*
- Download and open the sample project from: https://github.com/Dev1an/PDFKit-Bug
- Change the developer team
- Run the project on a device or simulator
*— In the app on the iOS device or simulator —*
- Press the "+" icon in the top right corner of the screen.
**What I get**
A page containing the image is shown upside-down in the bottom right corner of the screen and it becomes impossible to scroll and/or zoom
**What I expect**
A page containing the image is shown in the middle of the screen, under the correct angle. Zooming and scrolling through the PDF should continue working.