Git Product home page Git Product logo

Comments (5)

ranunez avatar ranunez commented on July 19, 2024

Hmm, nothing initially jumps out at me. Do you have a simple example repo of a PDFPageView in a UIPageViewController? PDFPageView is an internal class and wasn't intended to be used outside of the context of the framework.

from ios-pdf-reader.

rv-17 avatar rv-17 commented on July 19, 2024

I'll create a sample project. I use a similar implementation, so I swapped classes and got the same result.

BTW, has this issue in CoreGraphics been resolved meanwhile?

class PdfTiledLayer: CATiledLayer {
    override class func fadeDuration() -> CFTimeInterval {
        return 0.001 // Workaround
    }

    override func display() {
        //contents = nil  --> Stops flickering but causes blinking instead.
        super.display()
    }
}

from ios-pdf-reader.

rv-17 avatar rv-17 commented on July 19, 2024

I could pin down the part that's responsible for the issue mentioned above. It's this line:

contentScaleFactor = 1

Commenting out …

// contentScaleFactor = 1

… solves it. What's the implication not setting this property to one? Everything renders fine and quite fast now!

from ios-pdf-reader.

ranunez avatar ranunez commented on July 19, 2024

https://github.com/Alua-Kinzhebayeva/iOS-PDF-Reader/blob/master/Sources/Classes/PDFPageView.swift#L132

from ios-pdf-reader.

ranunez avatar ranunez commented on July 19, 2024

But having said that, if the commenting out the above code works for you in your implementation, then go for it!

from ios-pdf-reader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.