Git Product home page Git Product logo

Comments (5)

stefanrenne avatar stefanrenne commented on July 29, 2024 8

Wrapping that piece of code with a dispatch async also solves the problem

DispatchQueue.main.async {
     let motionEffectsX = UIInterpolatingMotionEffect(keyPath: "center.x", type: .tiltAlongHorizontalAxis)
     motionEffectsX.maximumRelativeValue = offset
     motionEffectsX.minimumRelativeValue = -offset
            
     let motionEffectsY = UIInterpolatingMotionEffect(keyPath: "center.y", type: .tiltAlongVerticalAxis)
     motionEffectsY.maximumRelativeValue = offset
     motionEffectsY.minimumRelativeValue = -offset
            
     let group = UIMotionEffectGroup()
     group.motionEffects = [motionEffectsX, motionEffectsY]
            
     self.addMotionEffect(group)
}

Created a PR for this #252

from pkhud.

jbmaxwell avatar jbmaxwell commented on July 29, 2024 4

I'm running 5.2.1 and still get this error. Is it not merged?

from pkhud.

jbmaxwell avatar jbmaxwell commented on July 29, 2024 3

Updated my project to Xcode 10.2, Swift 5, cloned your repo and updated PKHUD to 5.2.2, and same Main Thread Checker error. This is on iPhone XR, btw.

from pkhud.

tarekeg avatar tarekeg commented on July 29, 2024

thanks a lot

from pkhud.

PGLongo avatar PGLongo commented on July 29, 2024

merged the pr

from pkhud.

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.