-
Notifications
You must be signed in to change notification settings - Fork 494
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
Problem with CoreMotion causes UI API called on a background thread, IPhone X series #251
Comments
thanks a lot |
Wrapping that piece of code with a dispatch async also solves the problem
Created a PR for this #252 |
merged the pr |
I'm running 5.2.1 and still get this error. Is it not merged? |
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. |
NickAgerMoletest
pushed a commit
to Moletest-Scotland/PKHUD
that referenced
this issue
Sep 18, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this problem just block presentation on ios 12x only int IPhone X series
this part of code was commented and solve the problem
// 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]
//
// addMotionEffect(group)
The text was updated successfully, but these errors were encountered: